Files
kotlin-fork/compiler/testData/diagnostics/tests/secondaryConstructors/unreachableCode.fir.kt
T

39 lines
518 B
Kotlin
Vendored

class A0 {
val x: Int
constructor() {
if (1 == 1) {
return
}
x = 1
}
constructor(arg: Int) {
x = arg
}
}
class A1 {
val x: Int
constructor() {
if (1 == 1) {
return
} else null!!
x = 1
}
}
class A2 {
val x: Int
constructor() {
if (1 == 1) {
x = 1
return
}
else {
x = 2
}
}
constructor(arg: Int) {
x = arg
}
}