lean4-htt/tests/lean/run/1705.lean
Leonardo de Moura 3300eafd39 fix(frontends/lean/parser): fixes #1705
This is a temporary fix.
We will be able to implement a better solution after #1674.
2017-06-27 13:20:37 -07:00

18 lines
254 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import data.stream
inductive T : Type
| mk : nat → T
notation `&-` := T.mk
example : T → T
| (&- x) := &- x --works
notation `&-` := list.head
example : T → T
| (&- x) := &- x
def f {α} : list α → nat
| [] := 0
| (a::as) := f as + 1