Closed peddie closed 8 years ago
how's this? https://github.com/swift-nav/plover/pull/45
Loading module testing...
Loading module prelude...
Error at "examples/testing.plv" (line 11, column 11):
printf ("hi there", 22);
^
Nontrivial tuples not supported. Did you mean to call a function?
Error at "examples/prelude.plv" (line 60, column 3):
printf (x :: string) __VARARGS__ :: int;
^
at "examples/prelude.plv" (line 60, column 11):
printf (x :: string) __VARARGS__ :: int;
^
at "examples/testing.plv" (line 11, column 3):
printf ("hi there", 22);
^
Could not unify type
(string, int)
with type
string
Error at "examples/testing.plv" (line 11, column 3):
printf "hi there", 22;
^
Nontrivial tuples not supported. Did you mean to call a function?
That's so much better I can't even understand it.
yields
Removing the comma fixes it:
We should do a better error message . . .