mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
17 lines
208 B
Kotlin
Vendored
17 lines
208 B
Kotlin
Vendored
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;
|
|
}
|