[Tests] Add test for KT-59493
This is to record the red->green change in behavior between K1 and K2, when K2 correctly handles resolution/inference of an extension function with definitely non-nullable type.
This commit is contained in:
+6
@@ -12358,6 +12358,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/explicitDefinitelyNotNullableViaIntersection/isAsOperatorsEnabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt59493.kt")
|
||||
public void testKt59493() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/explicitDefinitelyNotNullableViaIntersection/kt59493.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notApplicable.kt")
|
||||
public void testNotApplicable() throws Exception {
|
||||
|
||||
+6
@@ -12358,6 +12358,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/explicitDefinitelyNotNullableViaIntersection/isAsOperatorsEnabled.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt59493.kt")
|
||||
public void testKt59493() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/explicitDefinitelyNotNullableViaIntersection/kt59493.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notApplicable.kt")
|
||||
public void testNotApplicable() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user