chore: allow quoting private names from inside public scope (#9985)

This commit is contained in:
Sebastian Ullrich 2025-08-19 11:07:48 +02:00 committed by GitHub
parent f81236185c
commit cd729660ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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?