Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364959 - [Xtend] missing type check in member initializer
Summary: [Xtend] missing type check in member initializer
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 major (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 09:53 EST by Moritz Eysholdt CLA
Modified: 2017-09-19 17:36 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 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