When a user defines a nullary constructor Foo: Type, she can break imported libraries like editor-common.generated. This happens only when the constructor masks a variable name in the library and is caused by Stratego favouring nullary constructors over variables.

Possible fixes:

  1. Favour variables over constructors.
  2. Resolve to variable by default. Resolve to constructor, when no variable is found.
  3. Introduce a real package system in Stratego.
Submitted by Guido Wachsmuth on 5 June 2012 at 10:24

On 5 June 2012 at 10:25 Guido Wachsmuth tagged stratego

On 8 January 2013 at 14:15 Eelco Visser tagged major

On 10 March 2013 at 10:25 Guido Wachsmuth commented:

Related to Spoofax/557.

Log in to post comments