Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356093 - no viable alternative at input 'extends'
Summary: no viable alternative at input 'extends'
Status: CLOSED WONTFIX
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-29 11:03 EDT by Serano Colameo CLA
Modified: 2011-08-29 11:26 EDT (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 Serano Colameo CLA 2011-08-29 11:03:26 EDT
Build Identifier: Xtext 2.0.1

xtend2:

the following statement raises a "no viable alternative at input 'extends'" error:

class McpRoot implements IGenerator extends McpGenerator { }

this works:

class McpRoot extends McpGenerator implements IGenerator {

looks like you forgot a "&" in your xtext grammar... ;-)

~serano




Reproducible: Always

Steps to Reproduce:
1. see details
2.
3.
Comment 1 Sebastian Zarnekow CLA 2011-08-29 11:26:57 EDT
This works the same way as in Java: extends Type may not appear after implements Interface.