[Xtext 2.1] Problems extending Xbase [message #755505] |
Tue, 08 November 2011 11:39  |
Eclipse User |
|
|
|
Hi,
Trying to migrate my DSLs from 2.0.1 to 2.1.0, I came across new
validation error, which do not make any sense to me.
Here is an example DSL, which only overrides one Xbase rule with the
exact same content as in Xbase.xtext:
------------------------------------------------------------------------
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.xbase.Xbase
import "http://www.eclipse.org/xtext/xbase/Xbase"
import "http://www.eclipse.org/xtext/common/JavaVMTypes" as types
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
generate myDsl "http://www.xtext.org/example/mydsl/MyDsl"
Model:
{Model};
XCastedExpression returns XExpression:
XMemberFeatureCall (=>({XCastedExpression.target=current} 'as')
type=JvmTypeReference)*;
------------------------------------------------------------------------
This results in the validation error:
Cannot find compatible feature type in sealed EClass XCastedExpression
from imported package http://www.eclipse.org/xtext/xbase/Xbase:
The existing reference 'type' has an incompatible type 'null'.
The expected type is 'JvmTypeReference'.
Do I do anything wrong or is this a recently introduced bug?
I'd appreciate any hints!
Cheers,
Kai
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: [Xtext 2.1] Problems extending Xbase [message #756096 is a reply to message #756065] |
Thu, 10 November 2011 15:44  |
Eclipse User |
|
|
|
On 10.11.11 18:55, Sebastian Zarnekow wrote:
> Hi Goran,
>
> I can reproduce this one and will make a fix available soon.
> Thanks for the example.
>
> Regards,
> Sebastian
The fix is available in next master and maintenance build.
Cheers,
Sebastian
|
|
|
Powered by
FUDForum. Page generated in 0.05195 seconds