Bug 464894 - [refactoring] Extract method should respect extension flag on variables and parameters
Summary: [refactoring] Extract method should respect extension flag on variables and p...
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.8.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-17 10:13 EDT by Jan Koehnlein CLA
Modified: 2015-04-17 10:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Koehnlein CLA 2015-04-17 10:13:04 EDT
Extracting the marked region from the following code into a separate method 'foo'

 extension val x = newArrayList
 // ----8<----
 println(size)
 // ---->8----

will yield a method with compile error as the extension flag is missing on the method parameters:

 def foo(ArrayList<Object> list) {
    println(size)  // unknown method size
 }