blob: 9270f455108b48b9f0e34a3573e894728a2dff5f [file] [log] [blame]
// IGNORE_FIR
// Ignored due to KT-53573
import java.util.function.*
annotation class Some
enum class Direction {
@Some NORTH, SOUTH, WEST, EAST
}
enum class Color(val rgb: Int = 5) {
RED(0xFF0000),
GREEN(0x00FF00),
BLUE("0x0000FF");
constructor(y: String) : this(y.toInt())
}
enum class ProtocolState {
WAITING {
override fun signal() = TALKING
},
TALKING {
override fun signal() = WAITING
};
abstract fun signal(): ProtocolState
}
enum class IntArithmetics : BinaryOperator<Int>, IntBinaryOperator {
PLUS {
override fun apply(t: Int, u: Int): Int = t + u
},
TIMES {
override fun apply(t: Int, u: Int): Int = t * u
};
override fun applyAsInt(t: Int, u: Int) = apply(t, u)
}
class C {
val enumConst: Direction? = Direction.EAST
}