mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Grammar changed accordingly. Semicolons prohibited after an entry except the last one. Only one initializer is allowed per entry. EnumReferenceExpression AST node introduced. Some tests fixed, a pair of new tests written. Kotlin code inside project fixed. Formatter and intendation tests fixed accordingly. Stub version is incremented.
16 lines
390 B
Kotlin
Vendored
16 lines
390 B
Kotlin
Vendored
fun box() = if(Context.operatingSystemType == Context.Companion.OsType.OTHER) "OK" else "fail"
|
|
|
|
public class Context
|
|
{
|
|
companion object
|
|
{
|
|
public enum class OsType {
|
|
LINUX,
|
|
OTHER;
|
|
}
|
|
|
|
public val operatingSystemType: OsType
|
|
get() = OsType.OTHER
|
|
}
|
|
}
|