IDEA-83722 Autopopup interferes after new in varargs

This commit is contained in:
peter
2012-03-29 21:37:09 +02:00
parent 6385e3e227
commit 2e26592d0e
3 changed files with 29 additions and 4 deletions
@@ -1252,4 +1252,15 @@ class Foo {
assert !lookup
}
public void testVarargParenthesis() {
myFixture.configureByText 'a.java', '''
class Foo {
void foo(File... files) { }
{ foo(new <caret>) }
}
'''
type 'File('
assert myFixture.file.text.contains('new File()')
}
}