summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/completion/smartType/DontSuggestWildcardGenerics.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/java-tests/testData/codeInsight/completion/smartType/DontSuggestWildcardGenerics.java')
-rw-r--r--java/java-tests/testData/codeInsight/completion/smartType/DontSuggestWildcardGenerics.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/java-tests/testData/codeInsight/completion/smartType/DontSuggestWildcardGenerics.java b/java/java-tests/testData/codeInsight/completion/smartType/DontSuggestWildcardGenerics.java
new file mode 100644
index 000000000000..b1d18904a6fb
--- /dev/null
+++ b/java/java-tests/testData/codeInsight/completion/smartType/DontSuggestWildcardGenerics.java
@@ -0,0 +1,11 @@
+class Main {
+ void foo(List<? extends Number> list) {
+ list.forEach(new <caret>);
+ }
+}
+
+class List<T> {
+ void forEach(Consumer<? super T> consumer);
+}
+
+interface Consumer<T> { void consume(T t); } \ No newline at end of file