EA-38625 Fixed - UOE: NamespaceType.throwException

This commit is contained in:
Natalia.Ukhorskaya
2012-09-13 20:04:10 +04:00
parent 6b81ba1aef
commit 6516786979
3 changed files with 15 additions and 1 deletions
@@ -64,7 +64,6 @@ public class NamespaceType implements JetType {
@Override
public boolean isNullable() {
throwException();
return false;
}
@@ -0,0 +1,10 @@
// FILE: Test.java
public class Test {
public static final String FOO = "test";
}
// FILE: test.kt
fun ff() {
val a = Test?.FOO
System?.out.println(a)
}
@@ -421,6 +421,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/SafeCallNonNullReceiverReturnNull.kt");
}
@TestMetadata("SafeCallOnFakeNamespace.kt")
public void testSafeCallOnFakeNamespace() throws Exception {
doTest("compiler/testData/diagnostics/tests/SafeCallOnFakeNamespace.kt");
}
@TestMetadata("ShiftFunctionTypes.kt")
public void testShiftFunctionTypes() throws Exception {
doTest("compiler/testData/diagnostics/tests/ShiftFunctionTypes.kt");