chore: allow quoting private names from inside public scope (#9985)
This commit is contained in:
parent
f81236185c
commit
cd729660ed
1 changed files with 2 additions and 1 deletions
|
|
@ -238,7 +238,8 @@ def elabScientificLit : TermElab := fun stx expectedType? => do
|
|||
| none => throwIllFormedSyntax
|
||||
|
||||
@[builtin_term_elab doubleQuotedName] def elabDoubleQuotedName : TermElab := fun stx _ =>
|
||||
return toExpr (← realizeGlobalConstNoOverloadWithInfo stx[2])
|
||||
-- Always allow quoting private names.
|
||||
return toExpr (← withoutExporting <| realizeGlobalConstNoOverloadWithInfo stx[2])
|
||||
|
||||
@[builtin_term_elab declName] def elabDeclName : TermElab := adaptExpander fun _ => do
|
||||
let some declName ← getDeclName?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue