mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixup! Syntax for custom errors.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user