Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365071 - [Xtend] Primitives should be disallowed as type of extension fields
Summary: [Xtend] Primitives should be disallowed as type of extension fields
Status: RESOLVED WORKSFORME
Alias: None
Product: Xtend
Classification: Tools
Component: Backlog (show other bugs)
Version: 2.2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 365069 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-29 10:04 EST by Holger Schill CLA
Modified: 2016-08-25 05:30 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Schill CLA 2011-11-29 10:04:42 EST
Things like this are not marked as an error until now.

class Foo {

   extension int i = 1
}

This doesn't really make sence and a validation should raise an error.
Comment 1 Sven Efftinge CLA 2011-11-29 10:17:06 EST
*** Bug 365069 has been marked as a duplicate of this bug. ***
Comment 2 Christian Dietrich CLA 2016-08-25 05:30:59 EDT
was already fixed back in 2013