29 lines
610 B
Plaintext
Vendored
29 lines
610 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 {
|
|
TODO("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>TODO("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()
|
|
}
|
|
} |