Support when without expression.

#KT-1666 Fixed
This commit is contained in:
Pavel V. Talanov
2012-03-30 13:23:23 +04:00
parent fd19c9fae8
commit 2650e9f6b0
5 changed files with 53 additions and 19 deletions
@@ -72,7 +72,16 @@ public final class PatternMatchingTest extends SingleFileTranslationTest {
try {
checkFooBoxIsTrue("whenAsExpressionWithThrow.kt");
fail();
} catch (JavaScriptException e) {
}
catch (JavaScriptException e) {
}
}
public void testKT1665() throws Exception {
checkOutput("kt1665.kt", "a", "");
}
public void testWhenWithoutExpression() throws Exception {
checkFooBoxIsTrue("whenWithoutExpression.kt");
}
}