blob: 7e02add4ef357a8edb88b650e3a1c63c83172e5a [file] [log] [blame]
class A {
public val f : ()->String = {"OK"}
}
fun box(): String {
val a = A()
return a.f() // does not work: (in runtime) ClassCastException: A cannot be cast to kotlin.Function0
}