16 lines
227 B
Kotlin
Vendored
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()
|
|
}
|