FIR: Ensure that the array set argument (on RHS of =) is always mapped
to the last parameter of the set operator function, even if there are missing or too many index arguments.
This commit is contained in:
committed by
teamcityserver
parent
2bb3e94ef7
commit
34e6459014
+6
@@ -4437,6 +4437,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/checkArguments/arrayAccessSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arrayAccessSetNotEnoughArgs.kt")
|
||||
public void testArrayAccessSetNotEnoughArgs() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetNotEnoughArgs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arrayAccessSetTooManyArgs.kt")
|
||||
public void testArrayAccessSetTooManyArgs() throws Exception {
|
||||
|
||||
+6
@@ -4437,6 +4437,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/checkArguments/arrayAccessSet.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arrayAccessSetNotEnoughArgs.kt")
|
||||
public void testArrayAccessSetNotEnoughArgs() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/checkArguments/arrayAccessSetNotEnoughArgs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("arrayAccessSetTooManyArgs.kt")
|
||||
public void testArrayAccessSetTooManyArgs() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user