fixup! Syntax for custom errors.

This commit is contained in:
chriseth
2021-02-02 16:31:36 +01:00
parent edf3529db6
commit b6183edd18
4 changed files with 16 additions and 0 deletions
@@ -1,3 +1,4 @@
// TODO do we want to disallow this at all?
error Error(uint);
// ----
// SyntaxError 1855: (44-62): The built-in errors "Error" and "Panic" cannot be re-defined.
@@ -2,3 +2,4 @@
// TODO I Think the best way would be to have Error in the global scope.
error Panic(bytes2);
// ----
// SyntaxError 1855: (131-151): The built-in errors "Error" and "Panic" cannot be re-defined.