mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
The fqname of class should be clear from code Example: can't shorten A.Default.B.Default.C to A.B.C Also fixes problem when nested class of enum class could be accessed via enum entry
16 lines
383 B
Kotlin
16 lines
383 B
Kotlin
fun box() = if(Context.operatingSystemType == Context.Default.OsType.OTHER) "OK" else "fail"
|
|
|
|
public class Context
|
|
{
|
|
class object
|
|
{
|
|
public enum class OsType {
|
|
LINUX;
|
|
OTHER
|
|
}
|
|
|
|
public val operatingSystemType: OsType
|
|
get() = OsType.OTHER
|
|
}
|
|
}
|