diff options
Diffstat (limited to 'java/java-tests/testData/codeInsight/completion/smartType')
4 files changed, 48 insertions, 0 deletions
diff --git a/java/java-tests/testData/codeInsight/completion/smartType/ConstructorRef-out.java b/java/java-tests/testData/codeInsight/completion/smartType/ConstructorRef-out.java new file mode 100644 index 000000000000..19decec183b0 --- /dev/null +++ b/java/java-tests/testData/codeInsight/completion/smartType/ConstructorRef-out.java @@ -0,0 +1,14 @@ +@FunctionalInterface +interface Foo9 { + Bar test(int p); +} + +class Bar { + public Bar(int p) {} +} + +class Test88 { + void foo(Foo9 foo) { + foo(Bar::new<caret>); + } +}
\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/completion/smartType/ConstructorRef.java b/java/java-tests/testData/codeInsight/completion/smartType/ConstructorRef.java new file mode 100644 index 000000000000..7f7af003b377 --- /dev/null +++ b/java/java-tests/testData/codeInsight/completion/smartType/ConstructorRef.java @@ -0,0 +1,14 @@ +@FunctionalInterface +interface Foo9 { + Bar test(int p); +} + +class Bar { + public Bar(int p) {} +} + +class Test88 { + void foo(Foo9 foo) { + foo(Bar::<caret>); + } +}
\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/completion/smartType/InLambdaPositionSameNames-out.java b/java/java-tests/testData/codeInsight/completion/smartType/InLambdaPositionSameNames-out.java new file mode 100644 index 000000000000..48157c4ded2a --- /dev/null +++ b/java/java-tests/testData/codeInsight/completion/smartType/InLambdaPositionSameNames-out.java @@ -0,0 +1,10 @@ +interface I<T> { + void m(T t, String s); +} + +class Test { + public static void main(String[] args) { + String s = ""; + I<String> i = (s1, s2) -> <caret> + } +}
\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/completion/smartType/InLambdaPositionSameNames.java b/java/java-tests/testData/codeInsight/completion/smartType/InLambdaPositionSameNames.java new file mode 100644 index 000000000000..e7adb2ffb758 --- /dev/null +++ b/java/java-tests/testData/codeInsight/completion/smartType/InLambdaPositionSameNames.java @@ -0,0 +1,10 @@ +interface I<T> { + void m(T t, String s); +} + +class Test { + public static void main(String[] args) { + String s = ""; + I<String> i = <caret> + } +}
\ No newline at end of file |