10c5071eda
#KT-30616 fixed #KT-43995 fixed #KT-19424 fixed #KT-49443 fixed
24 lines
444 B
Kotlin
Vendored
24 lines
444 B
Kotlin
Vendored
// !RENDER_DIAGNOSTICS_FULL_TEXT
|
|
// TARGET_BACKEND: JVM_IR
|
|
|
|
// see KT-49443
|
|
// two similar examples check dependency on declarations ordering
|
|
|
|
interface I {
|
|
fun rename()
|
|
}
|
|
|
|
class DefaultEachEntryConfiguration(val entry: Int) : I {
|
|
override fun rename() {
|
|
entry.copy()
|
|
}
|
|
}
|
|
|
|
<!SCRIPT_CAPTURING_OBJECT!>object ZipHelper<!> {
|
|
fun buildZip() {
|
|
DefaultEachEntryConfiguration(0).rename()
|
|
}
|
|
}
|
|
|
|
fun Int.copy() = Unit
|