Files
kotlin-fork/compiler/testData/codegen/box/ir/enumClass2.kt
T
2018-08-02 09:52:48 +02:00

21 lines
376 B
Kotlin
Vendored

fun <T> assertEquals(actual: T, expected: T) {
if (actual != expected) {
throw java.lang.AssertionError("Assertion failed: $actual != $expected")
}
}
enum class TestEnumClass(val x: Int) {
ZERO
// {
// init {
// }
// }
;
constructor(): this(0)
}
fun box(): String {
assertEquals(TestEnumClass.ZERO.x, 0)
return "OK"
}