Don't generate default no-args constructor for enums

#KT-8438 Fixed
This commit is contained in:
Alexander Udalov
2015-07-10 21:01:57 +03:00
parent 064b03ca3f
commit 4de2c5a5c8
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,9 @@
// KT-8438 org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 4: Cannot pop operand off an empty stack
enum class E public constructor(x: String = "OK") {
ENTRY();
val result = x
}
fun box(): String = E.ENTRY.result