Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362236 - [xtend] Couldn't resolve reference to toString
Summary: [xtend] Couldn't resolve reference to toString
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 15:47 EDT by Knut Wannheden CLA
Modified: 2017-09-19 17:44 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Wannheden CLA 2011-10-27 15:47:35 EDT
In the following Xtend2 class the reference to toString cannot be resolved:

class Other {
	def foo() {  
	  	bar(i|i.toString)
	}
	def bar(Object o) {
	}
}

Changing the code to the following and it works:

class Other {
	def foo() {  
	  	bar(i|i.toString)
	}
	def bar((Object)=>Object o) {
	}
}
Comment 1 Sebastian Zarnekow CLA 2011-11-17 12:54:37 EST
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:33:18 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:44:30 EDT
Closing all bugs that were set to RESOLVED before Neon.0