KT-3181 Prohibit val/var keywords for function parameters

#KT-3181
This commit is contained in:
Evgeny Gerashchenko
2013-02-12 01:05:03 +04:00
parent 808dbd160c
commit b1cb8edd18
7 changed files with 37 additions and 10 deletions
@@ -0,0 +1,12 @@
fun f(
<!VAL_OR_VAR_ON_FUN_PARAMETER!>val<!> a: Int,
<!VAL_OR_VAR_ON_FUN_PARAMETER!>var<!> b: Int,
c: Int,
vararg <!VAL_OR_VAR_ON_FUN_PARAMETER!>var<!> d: Int,
vararg <!VAL_OR_VAR_ON_FUN_PARAMETER!>val<!> e: Int,
vararg f: Int
) {
a + b + c + d[0] + e[0] + f[0] // to avoid 'unused parameter'
}