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
@@ -0,0 +1,13 @@
fun f() {
try {
} catch (<!VAL_OR_VAR_ON_CATCH_PARAMETER!>val<!> e: Exception) {
}
try {
} catch (<!VAL_OR_VAR_ON_CATCH_PARAMETER!>var<!> e: Exception) {
}
try {
} catch (e: Exception) {
}
}