Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366525 - [Xtend] Sneaky throw not applied on return expressions
Summary: [Xtend] Sneaky throw not applied on return expressions
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: M5   Edit
Assignee: Jan Koehnlein CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 08:27 EST by Sven Efftinge CLA
Modified: 2017-09-19 17:19 EDT (History)
2 users (show)

See Also:
sven.efftinge: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Efftinge CLA 2011-12-13 08:27:47 EST
def foo() {
		return ^class.getDeclaredField('foo').get(this)
	}

workaround :

	def foo() {
                val result = ^class.getDeclaredField('foo').get(this)
		return result
	}
Comment 1 Jan Koehnlein CLA 2012-01-03 07:26:42 EST
Fixed and tests pushed to MASTER
Comment 2 Karsten Thoms CLA 2017-09-19 17:08:09 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:19:43 EDT
Closing all bugs that were set to RESOLVED before Neon.0