Enum entries now can have no initializer if default secondary constructor is available. #KT-8484 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-09-02 15:48:24 +03:00
parent 0fc8023f18
commit fa292ec0e0
9 changed files with 90 additions and 2 deletions
@@ -0,0 +1,8 @@
package test
enum class My(val s: String) {
ENTRY;
constructor(): this("OK")
}
fun box() = My.ENTRY.s