K1/K2: add test for Comparator.comparing situation from intellij
This commit is contained in:
committed by
Space Team
parent
993509c057
commit
db173b8ac5
+6
@@ -29752,6 +29752,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("comparingWithWrongNullability.kt")
|
||||||
|
public void testComparingWithWrongNullability() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/platformTypes/comparingWithWrongNullability.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("delegateByComplexInheritance.kt")
|
@TestMetadata("delegateByComplexInheritance.kt")
|
||||||
public void testDelegateByComplexInheritance() {
|
public void testDelegateByComplexInheritance() {
|
||||||
|
|||||||
+6
@@ -29752,6 +29752,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.+)\\.(kt|kts)$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("comparingWithWrongNullability.kt")
|
||||||
|
public void testComparingWithWrongNullability() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/platformTypes/comparingWithWrongNullability.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("delegateByComplexInheritance.kt")
|
@TestMetadata("delegateByComplexInheritance.kt")
|
||||||
public void testDelegateByComplexInheritance() {
|
public void testDelegateByComplexInheritance() {
|
||||||
|
|||||||
+6
@@ -27456,6 +27456,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("comparingWithWrongNullability.kt")
|
||||||
|
public void testComparingWithWrongNullability() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/platformTypes/comparingWithWrongNullability.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("delegateByComplexInheritance.kt")
|
@TestMetadata("delegateByComplexInheritance.kt")
|
||||||
public void testDelegateByComplexInheritance() {
|
public void testDelegateByComplexInheritance() {
|
||||||
|
|||||||
+6
@@ -27462,6 +27462,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("comparingWithWrongNullability.kt")
|
||||||
|
public void testComparingWithWrongNullability() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/platformTypes/comparingWithWrongNullability.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("delegateByComplexInheritance.kt")
|
@TestMetadata("delegateByComplexInheritance.kt")
|
||||||
public void testDelegateByComplexInheritance() {
|
public void testDelegateByComplexInheritance() {
|
||||||
|
|||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
// FIR_IDENTICAL
|
||||||
|
// FULL_JDK
|
||||||
|
|
||||||
|
import java.util.Comparator;
|
||||||
|
|
||||||
|
fun foo() {
|
||||||
|
Comparator.comparing<String?, Boolean?> {
|
||||||
|
it != ""
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+6
@@ -29752,6 +29752,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/platformTypes"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("comparingWithWrongNullability.kt")
|
||||||
|
public void testComparingWithWrongNullability() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/platformTypes/comparingWithWrongNullability.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("delegateByComplexInheritance.kt")
|
@TestMetadata("delegateByComplexInheritance.kt")
|
||||||
public void testDelegateByComplexInheritance() {
|
public void testDelegateByComplexInheritance() {
|
||||||
|
|||||||
Reference in New Issue
Block a user