21 lines
972 B
Plaintext
Vendored
21 lines
972 B
Plaintext
Vendored
warning: language version 2.0 is experimental, there are no backwards compatibility guarantees for new language and library features
|
|
compiler/testData/cli/jvm/firError.kt:1:13: error: 'val' on function parameter is prohibited.
|
|
fun println(val x: Int) {}
|
|
^
|
|
compiler/testData/cli/jvm/firError.kt:5:13: error: variable 'x' must be initialized.
|
|
println(x)
|
|
^
|
|
compiler/testData/cli/jvm/firError.kt:10:16: error: subclass 'public' exposes its 'private-in-file' supertype 'Private'.
|
|
class Public : Private() {
|
|
^
|
|
compiler/testData/cli/jvm/firError.kt:10:16: error: this type is final, so it cannot be extended.
|
|
class Public : Private() {
|
|
^
|
|
compiler/testData/cli/jvm/firError.kt:11:5: error: property must be initialized or be abstract.
|
|
val x: Private
|
|
^
|
|
compiler/testData/cli/jvm/firError.kt:11:9: error: property 'public' exposes its 'private-in-file' type 'Private'.
|
|
val x: Private
|
|
^
|
|
COMPILATION_ERROR
|