enum classes are never inner

This commit is contained in:
Alex Tkachman
2012-08-15 10:44:33 +03:00
parent f817b04f84
commit 87a8e0a5dc
3 changed files with 49 additions and 11 deletions
@@ -0,0 +1,15 @@
fun box() = if(Context.operatingSystemType == Context.OsType.OTHER) "OK" else "fail"
public class Context
{
class object
{
public enum class OsType {
LINUX;
OTHER
}
public val operatingSystemType: OsType
get() = OsType.OTHER
}
}