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.
12 lines
202 B
Kotlin
Vendored
12 lines
202 B
Kotlin
Vendored
class C() {
|
|
fun box(): Int {
|
|
fun local(i: Int = 1): Int {
|
|
return i
|
|
}
|
|
return local()
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return if (C().box() != 1) "fail" else "OK"
|
|
} |