Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/Jet183.kt
T

17 lines
285 B
Kotlin
Vendored

// FIR_IDENTICAL
enum class ProtocolState {
WAITING {
override fun signal() = ProtocolState.TALKING
},
TALKING {
override fun signal() = ProtocolState.WAITING
};
abstract fun signal() : ProtocolState
}
fun box() {
val x: ProtocolState = ProtocolState.WAITING
}