Files
kotlin-fork/compiler/testData/codegen/box/super/superConstructor/kt13846.kt
T
2019-11-19 11:00:09 +03:00

16 lines
227 B
Kotlin
Vendored

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