mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
completion inside method call after new could use return type constrains/other variables ignoring unresolved IntellijIdeaRulezz type (IDEA-144885)
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
|
||||
class D<T> {
|
||||
D(T t) {}
|
||||
D<Integer> reference = new D<>(new Integer(hashCode()));
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
|
||||
class D<T> {
|
||||
D(T t) {}
|
||||
D<Integer> reference = new D<>(new <caret>);
|
||||
}
|
||||
+7
@@ -146,6 +146,13 @@ public void testConvertToObjectStream() {
|
||||
checkResultByFile("/" + getTestName(false) + "-out.java");
|
||||
}
|
||||
|
||||
public void testInferFromReturnTypeWhenCompleteInsideArgList() {
|
||||
configureByTestName();
|
||||
myFixture.complete(CompletionType.SMART, 1);
|
||||
myFixture.type('\n');
|
||||
checkResultByFile("/" + getTestName(false) + "-out.java");
|
||||
}
|
||||
|
||||
public void testCollectorsToList() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user