Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unification on AST terms looses indices #100

Open
AZWN opened this issue May 2, 2022 · 0 comments
Open

Unification on AST terms looses indices #100

AZWN opened this issue May 2, 2022 · 0 comments

Comments

@AZWN
Copy link
Contributor

AZWN commented May 2, 2022

Bug description
When an AST term is bound to a unification variable, it looses its term index.

Versions
Spoofax version: 2.5.16, nightly april 2022.

Steps to reproduce the behavior
Use a constraint as follows

typeOfExp(s, arg) = T :- {ref id}
  arg == Var2Exp(ref),
  astId(ref, id),
  try { false } | note $[Term index: [id]].

Observed behavior
id is a free variable.

Expected behavior
id is bound to a particular term index.

Additional context
Originally found by @toinehartman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant