KT-987 Unboxing nulls

#KT-987 Fixed
This commit is contained in:
Andrey Breslav
2012-03-26 11:42:34 +04:00
parent 6ce6855a91
commit dd9c36387c
9 changed files with 57 additions and 15 deletions
@@ -0,0 +1,13 @@
// FILE: a/Test.java
package a;
public class Test<T> {
T t() {return null;}
}
// FILE: b.kt
package a
fun foo() {
// If this fails, it means that we have broken the rule that Java returns are always nullable
a.Test<Int>.t() <!UNSAFE_INFIX_CALL!>+<!> 1
}