KT-3341 Prohibit val/var keywords for catch parameters
#KT-3341
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user