KT-3341 Prohibit val/var keywords for catch parameters

#KT-3341
This commit is contained in:
Evgeny Gerashchenko
2013-02-12 01:14:19 +04:00
parent b1cb8edd18
commit 18d6e86e60
6 changed files with 26 additions and 1 deletions
@@ -1045,6 +1045,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/controlStructures/tryReturnType.kt");
}
@TestMetadata("valVarCatchParameter.kt")
public void testValVarCatchParameter() throws Exception {
doTest("compiler/testData/diagnostics/tests/controlStructures/valVarCatchParameter.kt");
}
@TestMetadata("valVarLoopParameter.kt")
public void testValVarLoopParameter() throws Exception {
doTest("compiler/testData/diagnostics/tests/controlStructures/valVarLoopParameter.kt");