cb5e451e05
for regular classes only. Reimplementing the main behavior of the old BE and implementing few cases on top of it. #KT-19423 fixed
22 lines
255 B
Kotlin
Vendored
22 lines
255 B
Kotlin
Vendored
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
|
// IGNORE_BACKEND: JVM
|
|
|
|
// expected: rv: kotlin.Unit
|
|
|
|
class C {
|
|
fun foo() {
|
|
B()
|
|
}
|
|
}
|
|
|
|
class A
|
|
fun A.ext() = Unit
|
|
|
|
class B {
|
|
fun bar() {
|
|
A().ext()
|
|
}
|
|
}
|
|
|
|
val rv = C().foo()
|