Files
kotlin-fork/compiler/testData/codegen/box/fieldRename/constructorAndClassObject.kt
T
2019-11-19 11:00:09 +03:00

18 lines
238 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Test(val prop: String) {
companion object {
public val prop : String = "CO";
}
}
fun box() : String {
val obj = Test("OK");
if (Test.prop != "CO") return "fail1";
return obj.prop;
}