[FIR] Reproduce KT-62541
This commit is contained in:
committed by
Space Team
parent
40e8552a8d
commit
06b3c6ec13
+6
@@ -87,6 +87,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("argumentTypeMismatchVsTooManyArgs.kt")
|
||||||
|
public void testArgumentTypeMismatchVsTooManyArgs() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/argumentTypeMismatchVsTooManyArgs.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("AssignToArrayElement.kt")
|
@TestMetadata("AssignToArrayElement.kt")
|
||||||
public void testAssignToArrayElement() throws Exception {
|
public void testAssignToArrayElement() throws Exception {
|
||||||
|
|||||||
+6
@@ -87,6 +87,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("argumentTypeMismatchVsTooManyArgs.kt")
|
||||||
|
public void testArgumentTypeMismatchVsTooManyArgs() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/argumentTypeMismatchVsTooManyArgs.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("AssignToArrayElement.kt")
|
@TestMetadata("AssignToArrayElement.kt")
|
||||||
public void testAssignToArrayElement() throws Exception {
|
public void testAssignToArrayElement() throws Exception {
|
||||||
|
|||||||
+6
@@ -87,6 +87,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("argumentTypeMismatchVsTooManyArgs.kt")
|
||||||
|
public void testArgumentTypeMismatchVsTooManyArgs() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/argumentTypeMismatchVsTooManyArgs.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("AssignToArrayElement.kt")
|
@TestMetadata("AssignToArrayElement.kt")
|
||||||
public void testAssignToArrayElement() throws Exception {
|
public void testAssignToArrayElement() throws Exception {
|
||||||
|
|||||||
+6
@@ -87,6 +87,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("argumentTypeMismatchVsTooManyArgs.kt")
|
||||||
|
public void testArgumentTypeMismatchVsTooManyArgs() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/argumentTypeMismatchVsTooManyArgs.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("AssignToArrayElement.kt")
|
@TestMetadata("AssignToArrayElement.kt")
|
||||||
public void testAssignToArrayElement() throws Exception {
|
public void testAssignToArrayElement() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// ISSUE: KT-62541
|
||||||
|
|
||||||
|
fun foo(i1: Int) {}
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
foo("",
|
||||||
|
<!TOO_MANY_ARGUMENTS!>2<!>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
// ISSUE: KT-62541
|
||||||
|
|
||||||
|
fun foo(i1: Int) {}
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
foo(<!TYPE_MISMATCH!>""<!>,
|
||||||
|
<!TOO_MANY_ARGUMENTS!>2<!>
|
||||||
|
)
|
||||||
|
}
|
||||||
Generated
+6
@@ -87,6 +87,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
runTest("compiler/testData/diagnostics/tests/AnonymousInitializers.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("argumentTypeMismatchVsTooManyArgs.kt")
|
||||||
|
public void testArgumentTypeMismatchVsTooManyArgs() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/argumentTypeMismatchVsTooManyArgs.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("AssignToArrayElement.kt")
|
@TestMetadata("AssignToArrayElement.kt")
|
||||||
public void testAssignToArrayElement() throws Exception {
|
public void testAssignToArrayElement() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user