Files
kotlin-fork/idea/testData/intentions/implementAbstractMember/function/implementAll.kt
T
2015-12-25 18:50:37 +03:00

23 lines
281 B
Kotlin
Vendored

// WITH_RUNTIME
// DISABLE-ERRORS
interface T<X> {
fun <caret>foo(x: X): X
}
class U : T<String> {
}
class V : T<Int> {
}
class Z : T<Int> by V() {
}
class W : T<Boolean> {
override fun foo(x: Boolean): Boolean {
throw UnsupportedOperationException()
}
}