Skip to content
Snippets Groups Projects
Commit dbf8f6fe authored by Ryan Scott's avatar Ryan Scott Committed by Marge Bot
Browse files

Fix #19377 by using lookupLOcc when desugaring TH-quoted ANNs

Previously, the desugarer was looking up names referenced in TH-quoted `ANN`s
by using `globalVar`, which would allocate a fresh TH `Name`. In effect, this
would prevent quoted `ANN`s from ever referencing the correct identifier
`Name`, leading to #19377. The fix is simple: instead of `globalVar`, use
`lookupLOcc`, which properly looks up the name of the in-scope identifier.

Fixes #19377.
parent a70bab97
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment