summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/completion/smartType/FilterWrongParamsMethods.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/java-tests/testData/codeInsight/completion/smartType/FilterWrongParamsMethods.java')
-rw-r--r--java/java-tests/testData/codeInsight/completion/smartType/FilterWrongParamsMethods.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/java/java-tests/testData/codeInsight/completion/smartType/FilterWrongParamsMethods.java b/java/java-tests/testData/codeInsight/completion/smartType/FilterWrongParamsMethods.java
new file mode 100644
index 000000000000..25af850029be
--- /dev/null
+++ b/java/java-tests/testData/codeInsight/completion/smartType/FilterWrongParamsMethods.java
@@ -0,0 +1,18 @@
+import java.util.ArrayList;
+import java.util.List;
+
+class A {
+ {
+ List<A> s = new ArrayList<>();
+ s.stream().filter(A::<caret>);
+ }
+
+ static <K> boolean accept(K k) {
+ return false;
+ }
+
+ public boolean accept1(String s) {
+ return true;
+ }
+}
+