Files
kotlin-fork/idea/testData/intentions/implementAbstractMember/function/implementAll.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

29 lines
672 B
Plaintext
Vendored

// WITH_RUNTIME
// DISABLE-ERRORS
interface T<X> {
fun foo(x: X): X
}
class U : T<String> {
override fun foo(x: String): String {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
class V : T<Int> {
override fun foo(x: Int): Int {
<caret><selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}
}
class Z : T<Int> by V() {
}
class W : T<Boolean> {
override fun foo(x: Boolean): Boolean {
throw UnsupportedOperationException()
}
}