Quick fix for enum entry super constructor syntax fix, together with a set of tests

This commit is contained in:
Mikhail Glukhikh
2015-05-08 18:05:03 +03:00
parent 147bca3d22
commit da3d083dc0
19 changed files with 280 additions and 1 deletions
@@ -0,0 +1,8 @@
// "Change to short enum entry super constructor" "true"
enum class MyEnum(val z: Int) {
A: MyEnum(3)<caret>
B(7)
C(12)
fun foo() = z * 2
}