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

Bug 362236

Summary: [xtend] Couldn't resolve reference to toString
Product: [Modeling] TMF Reporter: Knut Wannheden <knut.wannheden>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.1.0Flags: sebastian.zarnekow: juno+
Target Milestone: M4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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