Name binding This()
The following code used to work in NaBL, but is now no longer valid.
AttributeName(This(), a) : refers to Attribute a in EntityType e-ty where This This() has type e-ty
Triggers these errors:
Multiple messages: - Syntax error, not expected here: 'This' - Unresolved reference
What is the new way to name-bind This?
Submitted by Daco Harkes on 11 June 2014 at 12:41
Issue Log
Not supporting This() anymore in the syntax probably “solves” this previous issue on name binding this: https://yellowgrass.org/issue/Spoofax/818
More specifically
This This()
works fine inimplicity defines
andrefers to
but not inwhere
.
Thanks Guido
This was solved in commits:
https://github.com/metaborg/nabl/commit/1ff23d932d9c20c101b6ae35dc0cad6d63ca613f
https://github.com/metaborg/nabl/commit/ceaa19fbc0c99a357b739f58ed598a9fb2235eea
@Daco, please check if this still works with dbbe582189.
@Guido, just updated Spoofax to the latest nightly, 1.2.0.0-s41772, and it works fine.
Am I correct to assume this specific commit is included in the nightly?
Log in to post comments