[NI] Fix not-null smartcast on intersection of nullable types
#KT-28670 Fixed
This commit is contained in:
@@ -8435,6 +8435,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/nullability/kt25182.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notNullSmartcastOnIntersectionOfNullables.kt")
|
||||
public void testNotNullSmartcastOnIntersectionOfNullables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/nullability/notNullSmartcastOnIntersectionOfNullables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullToGeneric.kt")
|
||||
public void testNullToGeneric() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/nullability/nullToGeneric.kt");
|
||||
|
||||
Generated
+5
@@ -8435,6 +8435,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/generics/nullability/kt25182.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notNullSmartcastOnIntersectionOfNullables.kt")
|
||||
public void testNotNullSmartcastOnIntersectionOfNullables() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/nullability/notNullSmartcastOnIntersectionOfNullables.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullToGeneric.kt")
|
||||
public void testNullToGeneric() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/generics/nullability/nullToGeneric.kt");
|
||||
|
||||
Reference in New Issue
Block a user