Files
kotlin-fork/js/js.translator/testData/box/defaultArguments/enumSuperConstructor.kt
T
2018-04-19 13:17:28 +03:00

18 lines
244 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1138
package foo
enum class A {
B(2);
val c: Int
constructor (a: Int, b: Int = 3) {
c = a + b
}
}
fun box(): String {
assertEquals(5, A.B.c)
return "OK"
}