13 lines
286 B
Kotlin
Vendored
13 lines
286 B
Kotlin
Vendored
open class C1 protected <caret>(val x1: Int = 1, var x2: Float, x3: ((Int) -> Int)?) {
|
|
fun bar() {
|
|
val y1 = x1;
|
|
val y2 = x2;
|
|
}
|
|
}
|
|
class C2 : C1(1, 2.5, null) {
|
|
fun foo() {
|
|
var c = C1(2, 3.5, null);
|
|
c = C1(x1 = 2, x2 = 3.5, x3 = null);
|
|
}
|
|
}
|