Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345822 - [xtend] cannot resolve references to methods of java.lang.Object for untyped closure parameter
Summary: [xtend] cannot resolve references to methods of java.lang.Object for untyped ...
Status: CLOSED DUPLICATE of bug 345823
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-14 15:44 EDT by Knut Wannheden CLA
Modified: 2011-05-15 04:19 EDT (History)
1 user (show)

See Also:
sven.efftinge: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Wannheden CLA 2011-05-14 15:44:03 EDT
For the following Xtend2 snippet:

	def bar() {
		val f = [e|e.toString]
		newArrayList(42).map(f)
	}

the editor displays an error marker for toString: Couldn't resolve reference to JvmIdentifiableElement 'toString'.
Comment 1 Sven Efftinge CLA 2011-05-15 04:18:33 EDT
I would like to make type information mandatory instead of implying Object.
Anyway the feedback is not ideal.
Comment 2 Sven Efftinge CLA 2011-05-15 04:19:47 EDT

*** This bug has been marked as a duplicate of bug 345823 ***