Files
kotlin-fork/idea/testData/checker/regression/Jet183.kt
T
2012-11-12 19:54:22 +04:00

23 lines
339 B
Kotlin

abstract enum class ProtocolState {
WAITING {
override fun signal() = ProtocolState.TALKING
}
TALKING {
override fun signal() = ProtocolState.WAITING
}
abstract fun signal() : ProtocolState
}
enum class Foo<T> {
<error>X</error>
}
fun box() {
val <warning>x</warning>: ProtocolState = ProtocolState.WAITING
}