test for fixed KT-1721

This commit is contained in:
Dmitry Jemerov
2012-06-08 18:51:03 +02:00
parent 803a5e5b65
commit 9eb2dd4bfe
2 changed files with 11 additions and 0 deletions
@@ -0,0 +1,6 @@
class T(val f : () -> Any?) {
fun call() : Any? = f()
}
fun box(): String {
return T({ "OK" }).call() as String
}