Improve yul error messages around number of arguments and variables.

This commit is contained in:
chriseth
2018-12-04 11:37:03 +01:00
parent 336287821a
commit d829794737
4 changed files with 24 additions and 15 deletions
@@ -10,7 +10,5 @@ contract C {
}
}
// ----
// TypeError: (87-88): Expected 1 arguments but got 0.
// SyntaxError: (87-90): Top-level expressions are not supposed to return values (this expression returns -1 values). Use ``pop()`` or assign them.
// TypeError: (108-109): Expected 1 arguments but got 2.
// SyntaxError: (108-115): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.
// TypeError: (87-88): Function expects 1 arguments but got 0.
// TypeError: (108-109): Function expects 1 arguments but got 2.