Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
codegen
/
box
/
classes
/
kt1976.kt
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
}