17 lines
268 B
Kotlin
Vendored
17 lines
268 B
Kotlin
Vendored
// DONT_TARGET_EXACT_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()
|
|
}
|