Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356767

Summary: [Xbase & Xtend] Second implicit argument
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 Flags: sven.efftinge: indigo+
Version: 2.0.0   
Target Milestone: SR2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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