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

Bug 364959

Summary: [Xtend] missing type check in member initializer
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: unspecifiedFlags: sven.efftinge: juno+
Target Milestone: M4   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Moritz Eysholdt CLA 2011-11-28 09:53:15 EST
The example

---
class bar {
	int i = new bar()
	
	def foo() {
		i
	}
}
---

raises no validation errors atm. 

An error telling that "new bar()" is not assignable to "int i" is needed.
Comment 1 Sebastian Zarnekow CLA 2011-11-28 11:00:26 EST
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:24:26 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:36:06 EDT
Closing all bugs that were set to RESOLVED before Neon.0