mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
[^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:
@@ -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>]
|
||||
}
|
||||
}
|
||||
'''
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user