1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-28 00:59:31 +00:00

Error reporting improvements for functions & overloads

This commit is contained in:
Étienne Fildadut 2024-01-06 15:14:15 +01:00
parent 7f71569e07
commit b004946266
20 changed files with 114 additions and 89 deletions

View file

@ -1,9 +1,9 @@
--# run #--
--- error ---
can't call overload overload<($(a::($(x) <lua function>)) _), ($(x::($(x) <lua function>)) _)>: more than one function match (5), matching functions were at least (specificity 1.3):
(x::($(x) <lua function>))
(a::($(x) <lua function>))
can't call overload fn: more than one function match arguments (5), matching functions were at least (specificity 1.2):
$(x::is number) (from test/tests/function type dispatch ambigous.ans:1:1)
$(a::is number) (from test/tests/function type dispatch ambigous.ans:4:1)
↳ from test/tests/function type dispatch ambigous.ans:7:3 in call: fn(5)
↳ from ? in block: :fn = ($(x::number) _)…
↳ from ? in block: :fn = ($(x::is number) _)…
--# saved #--
{}