lean4-htt/old_tests/tests/lean/non_exhaustive_error.lean
2018-04-10 12:56:55 -07:00

42 lines
658 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.

--
def g : ×
| (0, n) := n
| (m+2, 0) := m
definition f : string → nat → bool
| "hello world" 1 := tt
| "bye" _ := tt
def foo (y : ) :
| 0 a := a
| (x+1) 0 := 3 + foo x 10
| (x+1) (n+2) := 42
namespace other
mutual def f, g
with f : nat → nat → nat
| 0 0 := 1
with g : nat → nat → nat
| 0 0 := 1
end other
inductive term | mk : → list term → term
def const_name : term →
| (term.mk n []) := n
namespace other2
def f : nat → nat
| 1000 := 1
def g : string → nat
| "hello" := 0
meta def h : name → nat
| `eq := 0
def r : int → nat
| -1000 := 0
end other2