lean2/tests/lean/error_full_names.lean
2014-11-06 14:06:55 -08:00

10 lines
187 B
Text

import data.nat.basic
namespace foo
open nat
inductive nat : Type := zero, foosucc : nat → nat
check 0 + nat.zero --error
end foo
namespace foo
check nat.succ nat.zero --error
end foo