Light Classes: Fix computation of base type in anonymous light class

This commit is contained in:
Alexey Sedunov
2015-08-18 21:17:31 +03:00
parent d48851ba63
commit a085c93b5e
4 changed files with 48 additions and 5 deletions
@@ -0,0 +1,13 @@
interface X
interface A<D> {
public fun <caret>bar(receiverTypes: Collection<X>): Collection<D>
}
fun foo<D>(): A<D> {
return object: A<D> {
override fun bar(receiverTypes: Collection<X>): Collection<D> {
throw UnsupportedOperationException()
}
}
}
@@ -0,0 +1,13 @@
interface X
interface A<D> {
public fun <caret>foo(receiverTypes: Collection<X>): Collection<D>
}
fun foo<D>(): A<D> {
return object: A<D> {
override fun foo(receiverTypes: Collection<X>): Collection<D> {
throw UnsupportedOperationException()
}
}
}