Cache argument of when expression (should be evaluated only once).

This commit is contained in:
Pavel V. Talanov
2012-07-19 16:20:06 +04:00
parent cd2c55aeca
commit 534bde52f1
3 changed files with 37 additions and 6 deletions
@@ -40,6 +40,10 @@ public final class PatternMatchingTest extends SingleFileTranslationTest {
fooBoxTest();
}
public void testWhenEvaluatesArgumentOnlyOnce() throws Exception {
fooBoxTest();
}
public void testWhenValue() throws Exception {
fooBoxTest();
}