Files
kotlin-fork/backend.native/tests/external/codegen/box/enum/inclassobj.kt
T
2017-03-13 15:31:46 +03:00

16 lines
390 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
}
}