Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356767 - [Xbase & Xtend] Second implicit argument
Summary: [Xbase & Xtend] Second implicit argument
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 03:39 EDT by Sven Efftinge CLA
Modified: 2017-09-19 17:50 EDT (History)
0 users

See Also:
sven.efftinge: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Efftinge CLA 2011-09-06 03:39:44 EDT
Now that we have a second implicit variable 'it' we need a second implicit receiver.

consider the following Xtend code:

class Example {

  extension PersonExtensions exts

  def void doStuff(Person it) {

    // we can write the Java version
    this.exts.myExtension(it)
    // we can use the extension syntax
    it.myExtension
    // the following is not yet possible because we would need to keep track of two implicit arguments
    myExtension
  }

}
Comment 1 Sven Efftinge CLA 2011-09-19 07:57:03 EDT
pushed to master
Comment 2 Karsten Thoms CLA 2017-09-19 17:39:29 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:50:46 EDT
Closing all bugs that were set to RESOLVED before Neon.0