Check that subject expression is evaluated only once
This commit is contained in:
+5
@@ -21708,6 +21708,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/sparseIntSwitchWithSubjectVariable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("subjectExpressionIsEvaluatedOnce.kt")
|
||||
public void testSubjectExpressionIsEvaluatedOnce() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/subjectExpressionIsEvaluatedOnce.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenByEnum.kt")
|
||||
public void testWhenByEnum() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/when/whenSubjectVariable/whenByEnum.kt");
|
||||
|
||||
Reference in New Issue
Block a user