41a416da60
Delete all test methods (and empty test classes), since they'll be auto-generated
9 lines
192 B
Kotlin
9 lines
192 B
Kotlin
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 jet.Function0
|
|
}
|