mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
16 lines
385 B
Kotlin
16 lines
385 B
Kotlin
fun box() = if(Context.operatingSystemType == Context.Default.OsType.OTHER) "OK" else "fail"
|
|
|
|
public class Context
|
|
{
|
|
default object
|
|
{
|
|
public enum class OsType {
|
|
LINUX;
|
|
OTHER
|
|
}
|
|
|
|
public val operatingSystemType: OsType
|
|
get() = OsType.OTHER
|
|
}
|
|
}
|