KT-2193 Nullability information lost for functions inherited from traits

#KT-2193 fixed
This commit is contained in:
Evgeny Gerashchenko
2012-06-08 21:49:31 +04:00
parent f83defaa7f
commit d60818fd3e
8 changed files with 118 additions and 5 deletions
@@ -0,0 +1,10 @@
//KT-2206
trait A {
fun f():Int = 239
}
class B() : A
fun box() : String {
return if (B().f() == 239) "OK" else "fail"
}