mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
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.
11 lines
154 B
Kotlin
Vendored
11 lines
154 B
Kotlin
Vendored
fun foo(): String {
|
|
fun bar(x: String, y: String = x): String {
|
|
return y
|
|
}
|
|
|
|
return bar("OK")
|
|
}
|
|
|
|
fun box(): String {
|
|
return foo()
|
|
} |