cb5e451e05
for regular classes only. Reimplementing the main behavior of the old BE and implementing few cases on top of it. #KT-19423 fixed
16 lines
252 B
Kotlin
Vendored
16 lines
252 B
Kotlin
Vendored
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM
|
|
// IGNORE_BACKEND: JVM, JVM_IR
|
|
|
|
// expected: rv: <nofield>
|
|
|
|
// KT-30616
|
|
val foo = "hello"
|
|
|
|
class Bar(val s: String) {
|
|
companion object {
|
|
fun t() {
|
|
Bar(foo)
|
|
}
|
|
}
|
|
}
|