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

Bug 365071

Summary: [Xtend] Primitives should be disallowed as type of extension fields
Product: [Tools] Xtend Reporter: Holger Schill <Holger.Schill>
Component: BacklogAssignee: Project Inbox <xtend-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: christian.dietrich.opensource, moritz.eysholdt, sven.efftinge
Version: 2.2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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