test for fixed KT-1439

This commit is contained in:
Dmitry Jemerov
2012-06-08 18:40:26 +02:00
parent f945ec6a27
commit 2e14454391
2 changed files with 30 additions and 8 deletions
@@ -0,0 +1,17 @@
class MyClass(var fnc : () -> String) {
fun test(): String {
return fnc()
}
}
fun printtest() : String {
return "OK"
}
fun box(): String {
var c = MyClass({ printtest() })
return c.test()
}