diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/field/GrIntroduceFieldHandler.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/field/GrIntroduceFieldHandler.java index 2013139497d6..5c1586c3c06e 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/field/GrIntroduceFieldHandler.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/field/GrIntroduceFieldHandler.java @@ -265,12 +265,14 @@ public class GrIntroduceFieldHandler extends GrIntroduceHandlerBase123 + } +} \ No newline at end of file diff --git a/plugins/groovy/testdata/refactoring/introduceField/AnonymousClass_after.groovy b/plugins/groovy/testdata/refactoring/introduceField/AnonymousClass_after.groovy new file mode 100644 index 000000000000..fcdcbb9a6f79 --- /dev/null +++ b/plugins/groovy/testdata/refactoring/introduceField/AnonymousClass_after.groovy @@ -0,0 +1,13 @@ +interface A { + void m1() +} + +def a = new A() { + def f + + @Override + void m1() { + f = 123 + println f + } +} \ No newline at end of file