fix for KT-261

This commit is contained in:
Alex Tkachman
2011-08-30 16:32:41 +02:00
parent efba6c4cb0
commit 1b8f96e53c
6 changed files with 108 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
import java.lang.Integer
class C {
fun f(): Any = "C f"
}
class D() : C {
fun f(): String = "D f"
}
fun box(): String{
val d : C = D()
if(d.f() != "D f") return "fail f"
return "OK"
}