Files
kotlin-fork/js/js.translator/testData/box/defaultArguments/enumWithDefArg.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

15 lines
219 B
Kotlin
Vendored

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