| Summary: | [Xbase & Xtend] Second implicit argument | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Sven Efftinge <sven.efftinge> |
| Component: | Xtext | Assignee: | 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: | |||
pushed to master Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
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 } }