User-defined nullary constructors break libraries
When a user defines a nullary constructor
Foo: Type
, she can break imported libraries likeeditor-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:
Submitted by Guido Wachsmuth on 5 June 2012 at 10:24
- Favour variables over constructors.
- Resolve to variable by default. Resolve to constructor, when no variable is found.
- Introduce a real package system in Stratego.
Issue Log
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