Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/UnboxingNulls.kt
T
Andrey Breslav 3d8d92c7d3 JetDiagnosticsTest migrated to TestGenerator
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00

14 lines
264 B
Kotlin

// 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
}