Skip to content

Double-quoted names are not hygienic #586

@Kha

Description

@Kha
open Nat in
macro "foo" : command => `(
  #check zero
  #check ``succ)

foo
-- Nat.zero : Nat
-- unknown constant 'succ'

macro "bar" : command => `(
  #check zero
  #check ``succ)

open Nat in
bar
-- unknown identifier 'zero'
-- `Nat.succ : Lean.Name

This is because they are not made of Syntax.idents, so our hygiene algorithm cannot store the extra-macro context in preresolved

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions