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.
25 lines
297 B
Text
25 lines
297 B
Text
namespace Foo
|
|
|
|
syntax "foo" term : term
|
|
|
|
macro_rules
|
|
| `(foo $x) => pure x
|
|
|
|
set_option trace.Elab true in
|
|
#check foo true
|
|
|
|
end Foo
|
|
|
|
namespace Bla
|
|
|
|
syntax (name := bla) "bla" term : term
|
|
|
|
macro_rules
|
|
| `(bla $x) => pure x
|
|
|
|
set_option trace.Elab true in
|
|
#check bla true
|
|
|
|
#print Bla.bla
|
|
|
|
end Bla
|