mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
16 lines
389 B
Kotlin
16 lines
389 B
Kotlin
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
|
|
}
|
|
}
|