Files
kotlin-fork/compiler/testData/diagnostics/tests/constructorConsistency/basic.fir.kt
T

14 lines
170 B
Kotlin
Vendored

class My {
val x: String
constructor() {
val y = bar(this)
val z = foo()
x = "$y$z"
}
fun foo() = x
}
fun bar(arg: My) = arg.x