Files
kotlin/compiler/testData/codegen/box/enum/inclassobj.kt
2018-07-23 15:08:18 +03:00

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
}
}