lean4-htt/tests/lean/run/4547.lean
2024-06-25 20:03:53 +00:00

19 lines
323 B
Text

/--
error: 'f.go' has already been declared
-/
#guard_msgs in
def f (x : Nat) : Nat :=
go x
where
go (x : Nat) : Nat := x
go (x : Nat) : Nat := x + 1
/--
error: 'g.go' has already been declared
-/
#guard_msgs in
def g (x : Nat) : Nat :=
go x
where
go (x : Nat) : Nat := x
go (x : Nat) (y : Nat) : Nat := x + 1