diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/refactoring/rename/RenameTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/refactoring/rename/RenameTest.groovy index d59039014072..fb3ae6884eca 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/refactoring/rename/RenameTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/refactoring/rename/RenameTest.groovy @@ -759,4 +759,22 @@ trait T2 extends T { ''') } } + + void 'test rename reflected method with overloads'() { + fixture.with { + configureByText '_.groovy', '''\ +class A { + def foo(a, b, c = 1) {} + def foo(d = 2) {} +} +''' + renameElementAtCaretUsingHandler 'foo1' + checkResult '''\ +class A { + def foo1(a, b, c = 1) {} + def foo1(d = 2) {} +} +''' + } + } }