mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] auto overloads renamer test (follow up IDEA-CR-17081)
This commit is contained in:
@@ -759,4 +759,22 @@ trait T2 extends T {
|
||||
''')
|
||||
}
|
||||
}
|
||||
|
||||
void 'test rename reflected method with overloads'() {
|
||||
fixture.with {
|
||||
configureByText '_.groovy', '''\
|
||||
class A {
|
||||
def fo<caret>o(a, b, c = 1) {}
|
||||
def foo(d = 2) {}
|
||||
}
|
||||
'''
|
||||
renameElementAtCaretUsingHandler 'foo1'
|
||||
checkResult '''\
|
||||
class A {
|
||||
def foo1(a, b, c = 1) {}
|
||||
def foo1(d = 2) {}
|
||||
}
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user