Tests for renamed fields
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class Test(val prop: String) {
|
||||
|
||||
class object {
|
||||
public val prop : String = "CO";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
fun box() : String {
|
||||
val obj = Test("OK");
|
||||
|
||||
if (Test.prop != "CO") return "fail1";
|
||||
|
||||
return obj.prop;
|
||||
}
|
||||
Reference in New Issue
Block a user