mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
testdata for IDEA-21602
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
public class IDEABug {
|
||||
|
||||
static class ClassA {
|
||||
static <T> void sayHello(Collection<? extends T> msg) {}
|
||||
}
|
||||
|
||||
static class ClassB extends ClassA {
|
||||
static <T extends String> void sayHello(Collection<? extends T> msg) {}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
ClassB.sayHello(Collections.<String>emptyList());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user