JVM IR: Remove type substitutions from ExpressionCodegen
Instead, determine whether the return type of a call is Nothing, by looking at the type of the call expression.
This commit is contained in:
committed by
max-kammerer
parent
2f0f4e570f
commit
aea5e3ffbc
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
interface PsiElement {
|
||||
fun <T: PsiElement> findChildByType(i: Int): T? =
|
||||
if (i == 42) JetOperationReferenceExpression() as T else throw Exception()
|
||||
|
||||
Reference in New Issue
Block a user