diff options
author | chriseth <chris@ethereum.org> | 2018-03-16 19:45:12 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-12 04:00:21 +0800 |
commit | 4e1ea0866d889daa1144d7c4d89b16cd03cf7dc2 (patch) | |
tree | a3c92f12965608079f0a5a4dec546326b898ecb9 /test/libsolidity/syntaxTests/modifiers/function_overrides_modifier.sol | |
parent | 2ad1acaf721072d27783d586048d6377be6c3f99 (diff) | |
download | dexon-solidity-4e1ea0866d889daa1144d7c4d89b16cd03cf7dc2.tar.gz dexon-solidity-4e1ea0866d889daa1144d7c4d89b16cd03cf7dc2.tar.zst dexon-solidity-4e1ea0866d889daa1144d7c4d89b16cd03cf7dc2.zip |
Extract modifier tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/modifiers/function_overrides_modifier.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/modifiers/function_overrides_modifier.sol | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/modifiers/function_overrides_modifier.sol b/test/libsolidity/syntaxTests/modifiers/function_overrides_modifier.sol new file mode 100644 index 00000000..25485bec --- /dev/null +++ b/test/libsolidity/syntaxTests/modifiers/function_overrides_modifier.sol @@ -0,0 +1,5 @@ +contract A { function mod(uint a) public { } } +contract B is A { modifier mod(uint a) { _; } } +// ---- +// DeclarationError: Identifier already declared. +// TypeError: Override changes function to modifier. |