Files
kotlin-fork/compiler/testData/checker/regression/Jet183.jet
T
2011-10-20 16:21:18 +02:00

23 lines
320 B
Plaintext

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 x: ProtocolState = ProtocolState.WAITING
}