Write proper start label for inlined constructor parameters (start label was shifted by additional captured parameters injection)

This commit is contained in:
Michael Bogdanov
2016-04-09 11:55:33 +03:00
parent 0cf1c8d900
commit c52c0e2c2d
3 changed files with 43 additions and 1 deletions
@@ -0,0 +1,17 @@
open class A(val z: String) {
}
inline fun test(crossinline s: () -> String) {
object : A("123") {
val x = s();
}
}
fun main(args: Array<String>) {
var z = "123";
test { z }
}
/*Threre are two constuctors so we should be sure that we check LOCALVARIABLEs from same method*/
// 1 LOCALVARIABLE this LInlinedConstuctorWithSuperCallParamsKt\$main\$\$inlined\$test\$1; L0 L7 0\s+LOCALVARIABLE \$super_call_param\$1 Ljava/lang/String; L0 L7 1