1abdf0561a
re-ordering the lowering phases. The changes in InterfaceLowering are necessary so that IrElements that target the removed functions are re-targeted to the new functions in DefaultImpls. This affects local functions in interface functions since now LocalDeclarationsLowering comes before InterfaceLowering.
13 lines
270 B
Kotlin
Vendored
13 lines
270 B
Kotlin
Vendored
fun box(): String {
|
|
val s = "captured";
|
|
|
|
class A(val param: String = "OK") {
|
|
val s2 = s + param
|
|
}
|
|
|
|
if (A().s2 != "capturedOK") return "fail 1: ${A().s2}"
|
|
|
|
if (A("Test").s2 != "capturedTest") return "fail 2: ${A("Test").s2}"
|
|
|
|
return "OK"
|
|
} |