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.
10 lines
174 B
Kotlin
Vendored
10 lines
174 B
Kotlin
Vendored
fun box() : String {
|
|
fun local(i: Int = 1) : Int {
|
|
return i
|
|
}
|
|
|
|
if (local() != 1) return "Fail 1"
|
|
if (local(2) != 2) return "Fail 2"
|
|
|
|
return "OK"
|
|
} |