Files
kotlin-fork/j2k/testData/fileOrElement/constructors/secondaryConstructorWithDefaultValues.kt
T
2015-09-18 15:44:18 +03:00

14 lines
270 B
Kotlin
Vendored

// ERROR: Val cannot be reassigned
// ERROR: Val cannot be reassigned
internal class A {
private val s = ""
private val x = 0
constructor() {
}
@JvmOverloads constructor(p: Int, s: String, x: Int = 1) {
this.s = s
this.x = x
}
}