Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341753 - [Xbase] Cannot use parameter name / local var name 'this'
Summary: [Xbase] Cannot use parameter name / local var name 'this'
Status: CLOSED WONTFIX
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: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 342032
  Show dependency tree
 
Reported: 2011-04-04 05:38 EDT by Sebastian Zarnekow CLA
Modified: 2011-05-15 10:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2011-04-04 05:38:45 EDT
We should introduce XAbstractFeatureCall#implicitFirstArgument in addition to the #implicitReceiver and update the FeatureCall2JavaMapping. This will allow overloaded 'this' and 

class Thing {
	@Inject extension ThingExt
	foo() {	bar() }
}

class ThingExt {
	bar(Thing t) {}
}
Comment 1 Sven Efftinge CLA 2011-04-19 07:51:12 EDT
We decided to not do this, as it would make feature resolution even more complicated.
We couldn't oversee all problems and wanted to be able to learn in real-world projects whether this is 
worth the added complexity.

Making it an enhancement and removing the scheduling flags.
Comment 2 Sven Efftinge CLA 2011-05-15 10:32:31 EDT
I close this for now, as we agreed on not supporting variable name shadowing. If it at some point it is important enough to reconsider it shouldn't be a problem to add a new feature request.