diff options
author | Christian Parpart <christian@ethereum.org> | 2018-07-03 17:28:57 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-24 00:29:08 +0800 |
commit | 9f35f0b80571927ec89d77ec6827332c2ab60eba (patch) | |
tree | d7caff0e63513161a309640ad3c4be494e4157ad /test/libsolidity/syntaxTests | |
parent | 0fcdafe2b5e122ef1c9acbadad9f309f015dfeac (diff) | |
download | dexon-solidity-9f35f0b80571927ec89d77ec6827332c2ab60eba.tar dexon-solidity-9f35f0b80571927ec89d77ec6827332c2ab60eba.tar.gz dexon-solidity-9f35f0b80571927ec89d77ec6827332c2ab60eba.tar.bz2 dexon-solidity-9f35f0b80571927ec89d77ec6827332c2ab60eba.tar.lz dexon-solidity-9f35f0b80571927ec89d77ec6827332c2ab60eba.tar.xz dexon-solidity-9f35f0b80571927ec89d77ec6827332c2ab60eba.tar.zst dexon-solidity-9f35f0b80571927ec89d77ec6827332c2ab60eba.zip |
Disallow functions without implementation to use modifiers. This was already the case in the experimental 0.5.0 mode.
Diffstat (limited to 'test/libsolidity/syntaxTests')
-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. |