test for already fixed KT-1976

This commit is contained in:
Dmitry Jemerov
2012-06-03 12:51:16 +02:00
parent e0ac80a7ce
commit 23cdde5794
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,8 @@
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
}