Files
kotlin/compiler/testData/codegen/box/defaultArguments/constructor/enum.kt
Alexander Udalov 7ce62a5b64 Remove generated codegen tests, move all testData to box/
A single test file will be generated out of box/ directory
2013-01-28 18:20:21 +04:00

12 lines
168 B
Kotlin

enum class A(val a: Int = 1) {
FIRST: A()
SECOND: A(2)
}
fun box(): String {
if (A.FIRST.a == 1 && A.SECOND.a == 2) {
return "OK"
}
return "fail"
}