[^romka] IDEA-95710 autocomplete is too agressive when assigning array of primitive type to an Object

(cherry-picked from 538ffdf)
This commit is contained in:
peter
2012-11-23 21:51:56 +01:00
parent fa91e1ccb0
commit 6b5d564822
2 changed files with 23 additions and 1 deletions
@@ -1359,4 +1359,23 @@ class Foo {
myTester.joinAlarm()
}
public void "test new primitive array in Object variable"() {
CodeInsightSettings.instance.COMPLETION_CASE_SENSITIVE = CodeInsightSettings.NONE
myFixture.configureByText 'a.java', '''
class Foo {
void foo() {
Object o = new <caret>
}
}
'''
type 'int['
myFixture.checkResult '''
class Foo {
void foo() {
Object o = new int[<caret>]
}
}
'''
}
}