mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Rename type check to value check
This commit is contained in:
parent
c027c87dc4
commit
5d000e2fec
16 changed files with 76 additions and 60 deletions
|
|
@ -4,7 +4,7 @@
|
|||
--- text ---
|
||||
| {}"" {}"type(12, \"kg\")" {}"" |
|
||||
--- error ---
|
||||
[0m[31m[0m[31mtype check failure for weigh; 32 does not satisfy $(x) type(x) == t[0m
|
||||
[0m[31m[0m[31mvalue check failure for weigh; 32 does not satisfy $(x) type(x) == t[0m
|
||||
↳ from [4mtest/tests/constrained variable assignement.ans:9:7[0m in assignment: [2mweigh = 32[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:weigh::is("kg") = type(5, "kg")…[0m
|
||||
--# saved #--
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@
|
|||
--- error ---
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mcan't call overload iter: no function match arguments (value), possible functions were:
|
||||
• $(table::is table) (from stdlib/for.ans:46:1):
|
||||
type check failure for parameter table
|
||||
value check failure for parameter table
|
||||
• $(tuple::is sequence) (from stdlib/for.ans:37:1):
|
||||
type check failure for parameter tuple
|
||||
value check failure for parameter tuple
|
||||
• $(range::is range) (from stdlib/for.ans:19:1):
|
||||
type check failure for parameter range
|
||||
value check failure for parameter range
|
||||
• $(s::is struct) (from stdlib/for.ans:2:1):
|
||||
type check failure for parameter s[0m
|
||||
value check failure for parameter s[0m
|
||||
↳ from [4mstdlib/for.ans:3:18[0m in call: [2miter(var)[0m[0m
|
||||
↳ from [4mstdlib/for.ans:3:12[0m in definition: [2m:iterator = iter(var)[0m[0m
|
||||
↳ from [4mstdlib/for.ans:2:1[0m in block: [2m:iterator = iter(var)…[0m[0m
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@
|
|||
--- error ---
|
||||
[0m[31m[0m[31mcan't call overload a: no function match arguments (value), possible functions were:
|
||||
• $(name::($(x) type(x) == t)) (from test/tests/function custom type dispatch error.ans:7:1):
|
||||
type check failure for parameter name
|
||||
value check failure for parameter name
|
||||
• $(name::($(x) type(x) == t)) (from test/tests/function custom type dispatch error.ans:4:1):
|
||||
type check failure for parameter name[0m
|
||||
value check failure for parameter name[0m
|
||||
↳ from [4mtest/tests/function custom type dispatch error.ans:14:2[0m in call: [2ma(type(5, "nope"))[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:french name = "french name"…[0m
|
||||
--# saved #--
|
||||
|
|
|
|||
|
|
@ -6,19 +6,19 @@
|
|||
• $(s::is script, k::is string) = val (from stdlib/script.ans:43:1):
|
||||
expected 3 arguments, received 2
|
||||
• $(s::is script, k::is string) (from stdlib/script.ans:41:1):
|
||||
type check failure for parameter s
|
||||
value check failure for parameter s
|
||||
• $(c::is function, s::is symbol) = v (from stdlib/for.ans:2:1):
|
||||
expected 3 arguments, received 2
|
||||
• $(c::is function, s::is string) = v (from stdlib/for.ans:2:1):
|
||||
expected 3 arguments, received 2
|
||||
• $(c::is function, s::is string) (from stdlib/for.ans:2:1):
|
||||
type check failure for parameter c
|
||||
value check failure for parameter c
|
||||
• $(c::is environment, s::is symbol) = v (from stdlib/for.ans:2:1):
|
||||
expected 3 arguments, received 2
|
||||
• $(c::is environment, s::is string) = v (from stdlib/for.ans:2:1):
|
||||
expected 3 arguments, received 2
|
||||
• $(c::is environment, s::is string) (from stdlib/for.ans:2:1):
|
||||
type check failure for parameter c[0m
|
||||
value check failure for parameter c[0m
|
||||
↳ from [4mtest/tests/function separate variable from variants.ans:10:4[0m in call: [2mf . "a"[0m[0m
|
||||
↳ from [4mtest/tests/function separate variable from variants.ans:10:1[0m in text interpolation: [2m| {f . "a"} = 2 |[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:f = ($() _)…[0m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue