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 Space Team committed Oct 23, 2023
1 parent d700cd1 commit 508e032
Showing 1 changed file with 1 addition and 1 deletion.
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.