y in 'where x refers to y' clause is unscoped in generated code
For example
otherwise refers to Method n in Type t where q refers to Type t otherwise refers to Field n in Type t where q refers to Type t otherwise refers to Type n in Type t where q refers to Type t
produces the following code:
; where(t := <nabl-get-name> q ; r2-1-3-1__ := <nabl-use-candidate(|lang__, partition__, uris__, q)> UseCandidate( Import(lang__, NablNsType()) , [] , Current() , True() , [] )) ; where(t := <nabl-get-name> q ; r2-1-4-1__ := <nabl-use-candidate(|lang__, partition__, uris__, q)> UseCandidate( Import(lang__, NablNsType()) , [] , Current() , True() , [] )) ; where(t := <nabl-get-name> q ; r2-1-5-1__ := <nabl-use-candidate(|lang__, partition__, uris__, q)> UseCandidate( Import(lang__, NablNsType()) , [] , Current() , True() , [] ))
where
Submitted by Gabriël Konat on 30 October 2013 at 20:33t
is bound 3 times, which is invalid in Stratego.
Issue Log
On 30 October 2013 at 20:33 Gabriël Konat tagged error
On 30 October 2013 at 20:34 Gabriël Konat tagged generator
On 12 November 2013 at 15:49 Gabriël Konat commented:
Fixed in https://github.com/metaborg/nabl/commit/b9b91057feee73825009fd42cbaf9bcd2ff7e453
On 12 November 2013 at 15:49 Gabriël Konat closed this issue.
Log in to post comments