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