Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/UnboxingNulls.kt
T
2014-10-13 15:37:48 +04:00

14 lines
240 B
Kotlin
Vendored

// 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() + 1
}