Files
Egor Kulikov 70d49999ac [FIR] Generate an error primary constructor when super call is invalid
Merge-request: KT-MR-11026
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com>
2023-07-13 17:37:48 +00:00

50 lines
1.1 KiB
Plaintext
Vendored

FILE: explicitDelegationCallRequired.kt
public open class A : R|kotlin/Any| {
public constructor(x: R|kotlin/Int|): R|A| {
super<R|kotlin/Any|>()
}
public constructor(z: R|kotlin/String|): R|A| {
this<R|A|>(Int(10))
}
}
public final class B : R|A| {
public constructor(): R|B| {
super<R|A|>()
}
public constructor(z: R|kotlin/String|): R|B| {
this<R|B|>()
}
}
public final class C : R|A| {
public error_constructor(): R|C| {
super<R|A|>(Int(20))
}
public constructor(): R|C| {
super<R|A|>()
}
public constructor(z: R|kotlin/String|): R|C| {
this<R|C|>()
}
}
public final class D : R|A| {
public constructor(): R|D| {
super<R|A|>(Int(20))
}
public constructor(x: R|kotlin/Int|): R|D| {
super<R|A|>()
}
public constructor(z: R|kotlin/String|): R|D| {
this<R|D|>()
}
}