Skip to content

Commit

Permalink
fix: avoid hygienic ++ hygienic at Specialize.lean
Browse files Browse the repository at this point in the history
  • Loading branch information
leodemoura committed Nov 30, 2022
1 parent a095dab commit 7c5d91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Compiler/LCNF/Specialize.lean
Expand Up @@ -207,7 +207,7 @@ Specialize `decl` using
- `levelParamsNew`: the universe level parameters for the new declaration.
-/
def mkSpecDecl (decl : Decl) (us : List Level) (argMask : Array (Option Arg)) (params : Array Param) (decls : Array CodeDecl) (levelParamsNew : List Name) : SpecializeM Decl := do
let nameNew := decl.name ++ `_at_ ++ (← read).declName ++ (`spec).appendIndexAfter (← get).decls.size
let nameNew := decl.name ++ `_at_ ++ (← read).declName.eraseMacroScopes ++ (`spec).appendIndexAfter (← get).decls.size
/-
Recall that we have just retrieved `decl` using `getDecl?`, and it may have free variable identifiers that overlap with the free-variables
in `params` and `decls` (i.e., the "closure").
Expand Down

0 comments on commit 7c5d91e

Please sign in to comment.