Project
IntelliJ IDEA
Priority
Normal
Type
Feature
Fix versions
No Fix versions
State
Submitted
Assignee
Maxim Medvedev
Subsystem
Groovy
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Hamlet D'Arcy
    12 months ago (23 May 2011 16:55)
  • Updated by   Roman Shevchenko
    12 months ago (23 May 2011 20:14)
 
IDEA-70065 Introduce Field Refactoring within a closure of a script should create an @Field
2
Issue is visible to: All Users
  The issue is visible to the selected user group only
Introduce field support in Groovy is great. But within a script you can have a closure with Extract Field support as well:

Starting with this code:

def closure = {
    int i = 0
}


It could become this:
@Field int i = 0    
def closure = {
}


It would be nice to have extract field work in scripts.
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments