K2: Fix current behavior for KT-37375 and KT-58943

This commit is contained in:
Denis.Zharkov
2023-05-26 17:38:14 +02:00
committed by Space Team
parent f37dc27974
commit acb1859154
11 changed files with 184 additions and 0 deletions
@@ -27449,6 +27449,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/invoke"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("closeInvokesFarVariable.kt")
public void testCloseInvokesFarVariable() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/invoke/closeInvokesFarVariable.kt");
}
@Test
@TestMetadata("closerVariableMatterMore.kt")
public void testCloserVariableMatterMore() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/invoke/closerVariableMatterMore.kt");
}
@Test
@TestMetadata("completePropertyBeforeInvoke.kt")
public void testCompletePropertyBeforeInvoke() throws Exception {
@@ -27467,6 +27479,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt");
}
@Test
@TestMetadata("implicitAndInvokeExtensionPriority.kt")
public void testImplicitAndInvokeExtensionPriority() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/invoke/implicitAndInvokeExtensionPriority.kt");
}
@Test
@TestMetadata("implicitInvoke.kt")
public void testImplicitInvoke() throws Exception {
@@ -27449,6 +27449,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/resolve/invoke"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("closeInvokesFarVariable.kt")
public void testCloseInvokesFarVariable() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/invoke/closeInvokesFarVariable.kt");
}
@Test
@TestMetadata("closerVariableMatterMore.kt")
public void testCloserVariableMatterMore() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/invoke/closerVariableMatterMore.kt");
}
@Test
@TestMetadata("completePropertyBeforeInvoke.kt")
public void testCompletePropertyBeforeInvoke() throws Exception {
@@ -27467,6 +27479,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/resolve/invoke/functionExpectedWhenSeveralInvokesExist.kt");
}
@Test
@TestMetadata("implicitAndInvokeExtensionPriority.kt")
public void testImplicitAndInvokeExtensionPriority() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/invoke/implicitAndInvokeExtensionPriority.kt");
}
@Test
@TestMetadata("implicitInvoke.kt")
public void testImplicitInvoke() throws Exception {