Change Signature: Support conversion between extension and non-extension functions
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
class U<A>
|
||||
|
||||
trait 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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user