Based on the discussion at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/for.2C.20unexpected.20need.20for.20type.20ascription/near/269083574 The consensus seemed to be that "auto pure" is more confusing than its worth.
11 lines
195 B
Text
11 lines
195 B
Text
syntax "foo" &"bla" term : term
|
|
|
|
macro_rules
|
|
| `(foo bla $x) => pure x
|
|
|
|
-- bla is still a valid identifier
|
|
def bla := 10
|
|
|
|
#check foo bla 10
|
|
|
|
#check foo bll 10 -- Error: expected 'bla' at 'bll'
|