mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
completion: don't start template if Object was inferred by the parent type
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import pack.Foo;
|
||||
class Test {
|
||||
{
|
||||
Foo<Objec> f = new Foo<Objec>() {
|
||||
@Override
|
||||
public void foo(Objec objec) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import pack.Foo;
|
||||
class Test {
|
||||
{
|
||||
Foo<Objec> f = new <caret>
|
||||
}
|
||||
}
|
||||
+5
@@ -95,6 +95,11 @@ public class ClassNameCompletionTest extends LightFixtureCompletionTestCase {
|
||||
selectItem(myItems[0]);
|
||||
assert TemplateManagerImpl.getTemplateState(myFixture.getEditor()) == null;
|
||||
checkResultByFile(path +"/after2.java");
|
||||
|
||||
configureByFile(path + "/before3.java");
|
||||
selectItem(myItems[0]);
|
||||
assert TemplateManagerImpl.getTemplateState(myFixture.getEditor()) == null;
|
||||
checkResultByFile(path +"/after3.java");
|
||||
}
|
||||
|
||||
private void createClass(String text) {
|
||||
|
||||
Reference in New Issue
Block a user