19 lines
281 B
Plaintext
Vendored
19 lines
281 B
Plaintext
Vendored
// WITH_DEFAULT_VALUE: false
|
|
// TARGET:
|
|
open class A(val a: Int, val i: Int) {
|
|
constructor(): this(1, 1 + 1)
|
|
|
|
fun foo(): Int {
|
|
return i / 2
|
|
}
|
|
}
|
|
|
|
class B: A(1, 1 + 1) {
|
|
|
|
}
|
|
|
|
class C: A {
|
|
constructor(n: Int): super(n + 1, n + 1 + 1)
|
|
}
|
|
|
|
fun test() = A(1, 1 + 1) |