Fixed bug in DFGBuilder + test
This commit is contained in:
@@ -2266,6 +2266,11 @@ task inline_getClass(type: RunKonanTest) {
|
||||
source = "codegen/inline/getClass.kt"
|
||||
}
|
||||
|
||||
task inline_statementAsLastExprInBlock(type: RunKonanTest) {
|
||||
goldValue = "OK\n"
|
||||
source = "codegen/inline/statementAsLastExprInBlock.kt"
|
||||
}
|
||||
|
||||
task deserialized_inline0(type: RunKonanTest) {
|
||||
source = "serialization/deserialized_inline0.kt"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package codegen.inline.statementAsLastExprInBlock
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
fun foo() {
|
||||
val cls1: Any? = Int
|
||||
val cls2: Any? = null
|
||||
|
||||
cls1?.let {
|
||||
if (cls2 != null) {
|
||||
val zzz = 42
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test fun runTest() {
|
||||
println("OK")
|
||||
}
|
||||
Reference in New Issue
Block a user