Files
kotlin-fork/idea/testData/intentions/implementAbstractMember/function/enumClassWithSemicolonAndMembers.kt.after
T
Alexey Sedunov 8e061c9ec1 Implement Abstract Member: Navigate to the generated declaration
#KT-12290 Fixed
(cherry picked from commit 6274c6b)
2016-06-28 15:07:23 +03:00

17 lines
361 B
Plaintext
Vendored

// WITH_RUNTIME
// DISABLE-ERRORS
interface T<X> {
fun foo(x: X): X
}
enum class E : T<Int> {
A, B, C;
override fun foo(x: Int): Int {
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
val bar = 1
fun baz() = 2
}