mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-04 15:51:54 +00:00
Do not create redundant special variance when enhancing types
#KT-8538 Fixed
This commit is contained in:
10
compiler/testData/loadJava/compiledJava/mutability/ReadOnlyExtendsWildcard.java
vendored
Normal file
10
compiler/testData/loadJava/compiledJava/mutability/ReadOnlyExtendsWildcard.java
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package test;
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public interface ReadOnlyExtendsWildcard {
|
||||
void bar(); // Non-SAM
|
||||
void foo(@ReadOnly List<? extends CharSequence> x, @NotNull Comparable<? super String> y);
|
||||
}
|
||||
Reference in New Issue
Block a user