fix(tests/lean/run): replace "open [notation]" with "open [notations]"
This commit is contained in:
parent
235894cec5
commit
1797e2846f
4 changed files with 9 additions and 9 deletions
|
@ -18,8 +18,8 @@ end int
|
||||||
|
|
||||||
section
|
section
|
||||||
-- Open "only" the notation and declarations from the namespaces nat and int
|
-- Open "only" the notation and declarations from the namespaces nat and int
|
||||||
open [notation] nat
|
open [notations] nat
|
||||||
open [notation] int
|
open [notations] int
|
||||||
open [decls] nat
|
open [decls] nat
|
||||||
open [decls] int
|
open [decls] int
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@ constants n m : nat.nat
|
||||||
constants i j : int.int
|
constants i j : int.int
|
||||||
|
|
||||||
section
|
section
|
||||||
open [notation] nat
|
open [notations] nat
|
||||||
open [notation] int
|
open [notations] int
|
||||||
open [decls] nat
|
open [decls] nat
|
||||||
open [decls] int
|
open [decls] int
|
||||||
check n+m
|
check n+m
|
||||||
|
@ -39,8 +39,8 @@ namespace int
|
||||||
end int
|
end int
|
||||||
|
|
||||||
section
|
section
|
||||||
open [notation] nat
|
open [notations] nat
|
||||||
open [notation] int
|
open [notations] int
|
||||||
open [declarations] nat
|
open [declarations] nat
|
||||||
open [declarations] int
|
open [declarations] int
|
||||||
check n+m
|
check n+m
|
||||||
|
|
|
@ -17,8 +17,8 @@ namespace int
|
||||||
end int
|
end int
|
||||||
|
|
||||||
-- Open "only" the notation and declarations from the namespaces nat and int
|
-- Open "only" the notation and declarations from the namespaces nat and int
|
||||||
open [notation] nat
|
open [notations] nat
|
||||||
open [notation] int
|
open [notations] int
|
||||||
open [decls] nat
|
open [decls] nat
|
||||||
open [decls] int
|
open [decls] int
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ context
|
||||||
end
|
end
|
||||||
|
|
||||||
context
|
context
|
||||||
open [notation] foo -- use only the notation
|
open [notations] foo -- use only the notation
|
||||||
check foo.a * foo.c
|
check foo.a * foo.c
|
||||||
check a * c -- Error
|
check a * c -- Error
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue