1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 08:39:30 +00:00

Rename type check to value check

This commit is contained in:
Étienne Fildadut 2024-01-09 16:57:43 +01:00
parent c027c87dc4
commit 5d000e2fec
16 changed files with 76 additions and 60 deletions

View file

@ -4,7 +4,7 @@
--- text ---
| {}"" {}"type(12, \"kg\")" {}"" |
--- error ---
type check failure for weigh; 32 does not satisfy $(x) type(x) == t
value check failure for weigh; 32 does not satisfy $(x) type(x) == t
↳ from test/tests/constrained variable assignement.ans:9:7 in assignment: weigh = 32
↳ from ? in block: :weigh::is("kg") = type(5, "kg")…
--# saved #--

View file

@ -2,13 +2,13 @@
--- error ---
can'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
value check failure for parameter s
↳ from stdlib/for.ans:3:18 in call: iter(var)
↳ from stdlib/for.ans:3:12 in definition: :iterator = iter(var)
↳ from stdlib/for.ans:2:1 in block: :iterator = iter(var)…

View file

@ -6,9 +6,9 @@
--- error ---
can'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
value check failure for parameter name
↳ from test/tests/function custom type dispatch error.ans:14:2 in call: a(type(5, "nope"))
↳ from ? in block: :french name = "french name"…
--# saved #--

View file

@ -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
value check failure for parameter c
↳ from test/tests/function separate variable from variants.ans:10:4 in call: f . "a"
↳ from test/tests/function separate variable from variants.ans:10:1 in text interpolation: | {f . "a"} = 2 |
↳ from ? in block: :f = ($() _)…