Change Signature: Support conversion between extension and non-extension functions

This commit is contained in:
Alexey Sedunov
2014-12-19 20:40:17 +03:00
parent b31da56e09
commit 96866a108f
82 changed files with 1425 additions and 64 deletions
@@ -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()
}
}