IR: preserve argument evaluation order more carefully
1. receivers should be evaluated before named arguments;
2. just because an argument has no side effects doesn't mean it is not
affected by the other arguments' side effects - in that case it
should still be evaluated in source order.
#KT-47660 Fixed
This commit is contained in:
+5
@@ -538,6 +538,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
public void testSimpleInClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/argumentOrder/simpleInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleSideEffect.kt")
|
||||
public void testSingleSideEffect() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/argumentOrder/singleSideEffect.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays")
|
||||
|
||||
Reference in New Issue
Block a user