13 lines
227 B
Kotlin
13 lines
227 B
Kotlin
// "Add parameter to constructor 'Base'" "true"
|
|
// DISABLE-ERRORS
|
|
|
|
open class Base(var x: Int) {
|
|
val y = Base(1, 2);
|
|
|
|
fun f() {
|
|
val base = Base(1);
|
|
}
|
|
}
|
|
|
|
open class Inherited(x: Int) : Base(1, <caret>2.5) {}
|