Cache argument of when expression (should be evaluated only once).
This commit is contained in:
@@ -40,6 +40,10 @@ public final class PatternMatchingTest extends SingleFileTranslationTest {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testWhenEvaluatesArgumentOnlyOnce() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testWhenValue() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user