Star projection information preserved in substitutions
#KT-6700 Fixed
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package test;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public final class UnboundWildcard {
|
||||
public final MyClass<?> foo() {
|
||||
throw new UnsupportedOperationException();
|
||||
@@ -7,4 +9,8 @@ public final class UnboundWildcard {
|
||||
|
||||
public interface MyClass<T extends CharSequence> {
|
||||
}
|
||||
|
||||
public final Collection<?> collection() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package test
|
||||
|
||||
public final class UnboundWildcard {
|
||||
public constructor UnboundWildcard()
|
||||
public final fun foo(): test.UnboundWildcard.MyClass<out kotlin.CharSequence!>!
|
||||
public final fun collection(): kotlin.(Mutable)Collection<*>!
|
||||
public final fun foo(): test.UnboundWildcard.MyClass<*>!
|
||||
|
||||
public trait MyClass</*0*/ T : kotlin.CharSequence!> {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user