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
|
||||
-- Open "only" the notation and declarations from the namespaces nat and int
|
||||
open [notation] nat
|
||||
open [notation] int
|
||||
open [notations] nat
|
||||
open [notations] int
|
||||
open [decls] nat
|
||||
open [decls] int
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ constants n m : nat.nat
|
|||
constants i j : int.int
|
||||
|
||||
section
|
||||
open [notation] nat
|
||||
open [notation] int
|
||||
open [notations] nat
|
||||
open [notations] int
|
||||
open [decls] nat
|
||||
open [decls] int
|
||||
check n+m
|
||||
|
@ -39,8 +39,8 @@ namespace int
|
|||
end int
|
||||
|
||||
section
|
||||
open [notation] nat
|
||||
open [notation] int
|
||||
open [notations] nat
|
||||
open [notations] int
|
||||
open [declarations] nat
|
||||
open [declarations] int
|
||||
check n+m
|
||||
|
|
|
@ -17,8 +17,8 @@ namespace int
|
|||
end int
|
||||
|
||||
-- Open "only" the notation and declarations from the namespaces nat and int
|
||||
open [notation] nat
|
||||
open [notation] int
|
||||
open [notations] nat
|
||||
open [notations] int
|
||||
open [decls] nat
|
||||
open [decls] int
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ context
|
|||
end
|
||||
|
||||
context
|
||||
open [notation] foo -- use only the notation
|
||||
open [notations] foo -- use only the notation
|
||||
check foo.a * foo.c
|
||||
check a * c -- Error
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue