Files
kotlin-fork/idea/testData/refactoring/changeSignature/AddReceiverToGenericsWithOverridesAfter.kt
T
2015-05-13 16:13:13 +02:00

17 lines
354 B
Kotlin
Vendored

class U<A>
interface T<A> {
fun U<A>.foofoofoo<B>(b: B): Int
}
abstract class T1<X> : T<U<X>> {
override fun <B> U<U<X>>.foofoofoo(b: B): Int {
throw UnsupportedOperationException()
}
}
abstract class T2 : T1<String>() {
override fun <C> U<U<String>>.foofoofoo(b: C): Int {
throw UnsupportedOperationException()
}
}