Enum entries now can have no initializer if default secondary constructor is available. #KT-8484 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
enum class My(val s: String) {
|
||||
ENTRY;
|
||||
constructor(): this("OK")
|
||||
}
|
||||
|
||||
fun box() = My.ENTRY.s
|
||||
Reference in New Issue
Block a user