KT-15898 Cannot use type alias to qualify enum entry

Type alias static scope includes enum entries for underlying enum class.
This commit is contained in:
Dmitry Petrov
2017-01-25 12:25:19 +03:00
parent a974ed1049
commit 1613ad0505
11 changed files with 120 additions and 2 deletions
@@ -0,0 +1,10 @@
enum class MyEnum {
O;
companion object {
val K = "K"
}
}
typealias MyAlias = MyEnum
fun box() = MyAlias.O.name + MyAlias.K