lean4-htt/tests/lean/run/1163.lean
Leonardo de Moura 87932f1c56 feat(frontends/lean): change notation for inaccessible patterns
The following are accepted
 .(t)
 ._

We don't accept .t anymore because it will conflict with the field
access notation.
2017-03-28 16:09:15 -07:00

7 lines
220 B
Text

inductive {u} Foo : Type → Type (u+1)
| mk : Π (X : Type), Foo X
| wrap : Π (X : Type), Foo X → Foo X
def rig : Π {X : Type}, Foo X → Foo X
| X (Foo.wrap .(X) foo) := foo
| X foo := foo