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
Note that the specializes field in the exported interface ConceptualEntity is not optional but is optional in the exported ConceptualAssociation interface. This inconsistency causes a Typescript error.
Langium version:
Package name:
Steps To Reproduce
yo langium to create a new Langium project (see screenshot)
Substituting the Langium grammars in the linked files for the default grammar generated in the prior step
npm run langium:generate to generate, among other things, the ast.ts content.
Link to code example: Terminals.txt test.txt ast.ts.txt
Note: All file extensions changed to .txt because GitHub doesn't support .langium extensions
Find linked above 2 Langium grammar files (Terminals.txt and test.txt). Also find linked above ast.ts.txt, the ast.ts file generated
The current behavior
Base class specializes field is not optional
The expected behavior
Base class specializes field is optional
The text was updated successfully, but these errors were encountered:
In the example below, the test Langium grammar contains, among other things, the following:
Note that the field
specializes
is optional in bothConceptualEntity
andConceptualAssociation
.The generated
ast.ts
contains the following exports:Note that the
specializes
field in the exported interfaceConceptualEntity
is not optional but is optional in the exportedConceptualAssociation
interface. This inconsistency causes a Typescript error.Langium version:
Package name:
Steps To Reproduce
yo langium
to create a new Langium project (see screenshot)npm run langium:generate
to generate, among other things, theast.ts
content.Link to code example:
Terminals.txt
test.txt
ast.ts.txt
Note: All file extensions changed to .txt because GitHub doesn't support .langium extensions
Find linked above 2 Langium grammar files (
Terminals.txt
andtest.txt
). Also find linked aboveast.ts.txt
, the ast.ts file generatedThe current behavior
Base class
specializes
field is not optionalThe expected behavior
Base class
specializes
field is optionalThe text was updated successfully, but these errors were encountered: