Files
kotlin-fork/compiler/testData/codegen/box/super/superConstructor/kt13846.kt
T
2021-10-02 06:14:35 +00:00

17 lines
257 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: BOUND_RECEIVER
open class SuperClass(val arg: () -> String)
object obj {
fun foo(): String {
return "OK"
}
class Foo : SuperClass(::foo)
}
fun box(): String {
return obj.Foo().arg()
}