mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
create from usage: reuse 'completion inference' when create from argument list
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Create Local Variable 'foo'" "true"
|
||||
import java.util.*;
|
||||
class Test {
|
||||
{
|
||||
String foo<caret>;
|
||||
new Bar(Collections.singletonList(foo));
|
||||
}
|
||||
|
||||
class Bar {
|
||||
Bar(List<String> l) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Create Local Variable 'foo'" "true"
|
||||
import java.util.*;
|
||||
class Test {
|
||||
{
|
||||
new Bar(Collections.singletonList(fo<caret>o));
|
||||
}
|
||||
|
||||
class Bar {
|
||||
Bar(List<String> l) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user