diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-24 01:59:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-24 01:59:08 +0800 |
commit | b3c8e14952f86ab658ac456f5cce71609498a348 (patch) | |
tree | 0ece76b37c3a63e68924bb541cc5eab39abf6df8 /test | |
parent | f887d5162744d25d54ba22033a48d398ce88edbd (diff) | |
parent | 9f35f0b80571927ec89d77ec6827332c2ab60eba (diff) | |
download | dexon-solidity-b3c8e14952f86ab658ac456f5cce71609498a348.tar dexon-solidity-b3c8e14952f86ab658ac456f5cce71609498a348.tar.gz dexon-solidity-b3c8e14952f86ab658ac456f5cce71609498a348.tar.bz2 dexon-solidity-b3c8e14952f86ab658ac456f5cce71609498a348.tar.lz dexon-solidity-b3c8e14952f86ab658ac456f5cce71609498a348.tar.xz dexon-solidity-b3c8e14952f86ab658ac456f5cce71609498a348.tar.zst dexon-solidity-b3c8e14952f86ab658ac456f5cce71609498a348.zip |
Merge pull request #4411 from ethereum/v050-functions-with-modifiers-no-impl
[BREAKING] Disallow functions without implementation to use modifiers.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/syntaxTests/functionTypes/function_type_constructor.sol | 2 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/modifiers/modifiers_on_abstract_functions_no_parser_error.sol | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/functionTypes/function_type_constructor.sol b/test/libsolidity/syntaxTests/functionTypes/function_type_constructor.sol index 6549eb48..51f0b10d 100644 --- a/test/libsolidity/syntaxTests/functionTypes/function_type_constructor.sol +++ b/test/libsolidity/syntaxTests/functionTypes/function_type_constructor.sol @@ -3,5 +3,5 @@ contract C { constructor() public x; } // ---- -// Warning: (83-106): Modifiers of functions without implementation are ignored. +// SyntaxError: (83-106): Functions without implementation cannot have modifiers. // DeclarationError: (104-105): Undeclared identifier. diff --git a/test/libsolidity/syntaxTests/modifiers/modifiers_on_abstract_functions_no_parser_error.sol b/test/libsolidity/syntaxTests/modifiers/modifiers_on_abstract_functions_no_parser_error.sol index e18c5cf9..2e86fcc1 100644 --- a/test/libsolidity/syntaxTests/modifiers/modifiers_on_abstract_functions_no_parser_error.sol +++ b/test/libsolidity/syntaxTests/modifiers/modifiers_on_abstract_functions_no_parser_error.sol @@ -9,5 +9,5 @@ contract C function bar() public only_owner; } // ---- -// Warning: (203-236): Modifiers of functions without implementation are ignored. -// Warning: (241-274): Modifiers of functions without implementation are ignored. +// SyntaxError: (203-236): Functions without implementation cannot have modifiers. +// SyntaxError: (241-274): Functions without implementation cannot have modifiers. |