JVM IR: Minor fix for nullable SAM wrappers

This commit is contained in:
Steven Schäfer
2019-09-14 00:11:00 +02:00
committed by Alexander Udalov
parent 4d43c13fb1
commit f2e0c1a930
2 changed files with 10 additions and 3 deletions
@@ -92,7 +92,7 @@ class SingleAbstractMethodLowering(val context: CommonBackendContext) : FileLowe
val instance = irCall(implementation.constructors.single()).apply {
putValueArgument(0, irGet(invokableVariable))
}
irIfNull(superType, irGet(invokableVariable), irNull(), instance)
+irIfNull(superType, irGet(invokableVariable), irNull(), instance)
}
} else {
irCall(implementation.constructors.single()).apply { putValueArgument(0, invokable) }