[FIR] KT-53493: Turn VAL_OR_VAR_ON_*_PARAMETER warnings into errors

Merge-request: KT-MR-7032
Merged-by: Nikolay Lunyak <lunyak.kolya@mail.ru>
This commit is contained in:
Nikolay Lunyak
2022-09-06 08:40:48 +00:00
committed by Space
parent 794c9d16a3
commit 24dfb14654
3 changed files with 11 additions and 8 deletions
+3
View File
@@ -1,6 +1,9 @@
warning: ATTENTION!
This build uses experimental K2 compiler:
-Xuse-k2
compiler/testData/cli/jvm/firError.kt:1:13: error: 'val' on function parameter is not allowed
fun println(val x: Int) {}
^
compiler/testData/cli/jvm/firError.kt:5:13: error: variable 'x' must be initialized
println(x)
^