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

Bug 356093

Summary: no viable alternative at input 'extends'
Product: [Modeling] TMF Reporter: Serano Colameo <serano.colameo>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.