// WITH_RUNTIME // DISABLE-ERRORS interface T { fun foo(x: X): X } enum class E : T { A, B, C; override fun foo(x: Int): Int { throw UnsupportedOperationException() } val bar = 1 fun baz() = 2 }