Files
kotlin-fork/compiler/testData/debug/stepping/delegation.kt
T
Alexander Korepanov 4e62400f6f Revert "[FIR2IR] Set proper offsets for generated data class members"
This reverts commit b33798d65a.

Reverted because of KT-58215


Co-authored-by: Aleksandr Korepanov <Alexander.Korepanov@jetbrains.com>


Merge-request: KT-MR-14328
Merged-by: Anton Bannykh <Anton.Bannykh@jetbrains.com>
2024-02-13 09:52:09 +00:00

48 lines
665 B
Kotlin
Vendored

// FILE: test.kt
interface I {
fun f()
}
object O : I {
override fun f() {
Unit
}
}
class C : I by O
fun box() {
val c = C()
c.f()
}
// EXPECTATIONS JVM_IR
// test.kt:17 box
// test.kt:14 <init>
// test.kt:17 box
// test.kt:18 box
// test.kt:11 f
// test.kt:-1 f
// test.kt:19 box
// EXPECTATIONS JS_IR
// test.kt:17 box
// test.kt:14 <init>
// test.kt:8 <init>
// test.kt:14 <init>
// test.kt:18 box
// test.kt:1 f
// test.kt:11 f
// test.kt:1 f
// test.kt:19 box
// EXPECTATIONS WASM
// test.kt:17 $box (12, 12)
// test.kt:14 $C.<init> (15, 16)
// test.kt:18 $box (4, 6)
// test.kt:1 $C.f
// test.kt:11 $O.f
// test.kt:19 $box