You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
grammarFoointerfaceRuleType{prop : string};entryRule returns RuleType:
// Error at prop: The assigned type 'MyDataType' is not compatible with the declared property 'prop' of type 'string'.prop=MyDataType;
MyDataType returnsstring:
INT;
terminal INTreturnsnumber: /[0-9]+/;
The current behavior
In the example above an error is reported because MyDataType uses a number typed terminal rule. Even thought the rule defines the return type string.
The expected behavior
Because the datatype rule defines its return type as string the error should not be created.
The text was updated successfully, but these errors were encountered:
Langium version: 2.0.1
Package name: langium
Steps To Reproduce
The current behavior
In the example above an error is reported because
MyDataType
uses a number typed terminal rule. Even thought the rule defines the return typestring
.The expected behavior
Because the datatype rule defines its return type as
string
the error should not be created.The text was updated successfully, but these errors were encountered: