mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-14 00:21:34 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
17 lines
206 B
Kotlin
17 lines
206 B
Kotlin
class Test(val prop: String) {
|
|
|
|
default object {
|
|
public val prop : String = "CO";
|
|
}
|
|
|
|
}
|
|
|
|
|
|
fun box() : String {
|
|
val obj = Test("OK");
|
|
|
|
if (Test.prop != "CO") return "fail1";
|
|
|
|
return obj.prop;
|
|
}
|