Skip to content

Commit

Permalink
[K/JS] Remove unconditional cast to IrClass in KClass expression
Browse files Browse the repository at this point in the history
  • Loading branch information
JSMonk authored and qodana-bot committed Oct 23, 2023
1 parent d700cd1 commit 508e032
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ internal class JsUsefulDeclarationProcessor(
}

context.reflectionSymbols.getKClass -> {
addConstructedClass(expression.getTypeArgument(0)!!.classifierOrFail.owner as IrClass)
expression.getTypeArgument(0)?.classOrNull?.owner?.let(::addConstructedClass)
}

context.intrinsics.jsObjectCreateSymbol -> {
Expand Down

0 comments on commit 508e032

Please sign in to comment.