Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370111 - [xtend] Variable name must not be "assert"
Summary: [xtend] Variable name must not be "assert"
Status: CLOSED DUPLICATE of bug 346826
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.1   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 05:53 EST by Karsten Thoms CLA
Modified: 2012-01-30 06:16 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Thoms CLA 2012-01-30 05:53:39 EST
val assert = 1

results in uncompilable code, since "assert" is a Java keyword. There should be an error check for variable names to not use Java keywords.
Comment 1 Sven Efftinge CLA 2012-01-30 06:16:10 EST

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