diff --git a/src/Lean/Elab/BuiltinTerm.lean b/src/Lean/Elab/BuiltinTerm.lean index d98296d30d..1e6e11cc4e 100644 --- a/src/Lean/Elab/BuiltinTerm.lean +++ b/src/Lean/Elab/BuiltinTerm.lean @@ -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?