EA-38625 Fixed - UOE: NamespaceType.throwException
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user