Files
kotlin/compiler/testData/codegen/box/enum/inclassobj.kt
2018-06-09 19:15:38 +03:00

17 lines
415 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
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
}
}