Light Classes: Fix computation of base type in anonymous light class
This commit is contained in:
Vendored
+13
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+13
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user