[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:
+3
@@ -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)
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user