[Test] Add test for KT-57968
This commit is contained in:
committed by
Space Team
parent
adc5fe6e4e
commit
ad002437b4
+6
@@ -27339,6 +27339,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("extensionVsMember.kt")
|
||||||
|
public void testExtensionVsMember() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/priority/extensionVsMember.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeExtensionVsOther.kt")
|
@TestMetadata("invokeExtensionVsOther.kt")
|
||||||
public void testInvokeExtensionVsOther() throws Exception {
|
public void testInvokeExtensionVsOther() throws Exception {
|
||||||
|
|||||||
+6
@@ -27339,6 +27339,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("extensionVsMember.kt")
|
||||||
|
public void testExtensionVsMember() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/priority/extensionVsMember.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeExtensionVsOther.kt")
|
@TestMetadata("invokeExtensionVsOther.kt")
|
||||||
public void testInvokeExtensionVsOther() throws Exception {
|
public void testInvokeExtensionVsOther() throws Exception {
|
||||||
|
|||||||
+6
@@ -27339,6 +27339,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("extensionVsMember.kt")
|
||||||
|
public void testExtensionVsMember() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/priority/extensionVsMember.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeExtensionVsOther.kt")
|
@TestMetadata("invokeExtensionVsOther.kt")
|
||||||
public void testInvokeExtensionVsOther() throws Exception {
|
public void testInvokeExtensionVsOther() throws Exception {
|
||||||
|
|||||||
+6
@@ -27351,6 +27351,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("extensionVsMember.kt")
|
||||||
|
public void testExtensionVsMember() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/priority/extensionVsMember.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeExtensionVsOther.kt")
|
@TestMetadata("invokeExtensionVsOther.kt")
|
||||||
public void testInvokeExtensionVsOther() throws Exception {
|
public void testInvokeExtensionVsOther() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
// FIR_IDENTICAL
|
||||||
|
// ISSUE: KT-57968
|
||||||
|
|
||||||
|
class Some(val child: Some?)
|
||||||
|
|
||||||
|
val Some.foo get(): Int =
|
||||||
|
if ((child?.foo ?: 0) > 1) {
|
||||||
|
0
|
||||||
|
} else {
|
||||||
|
1
|
||||||
|
}
|
||||||
Generated
+6
@@ -28123,6 +28123,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/priority"), Pattern.compile("^(.*)\\.kts?$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("extensionVsMember.kt")
|
||||||
|
public void testExtensionVsMember() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/resolve/priority/extensionVsMember.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("invokeExtensionVsOther.kt")
|
@TestMetadata("invokeExtensionVsOther.kt")
|
||||||
public void testInvokeExtensionVsOther() throws Exception {
|
public void testInvokeExtensionVsOther() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user