diff options
author | chriseth <chris@ethereum.org> | 2018-07-09 23:53:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 23:53:23 +0800 |
commit | e950fd434aa4394e669c7277ba229595e0a4bc08 (patch) | |
tree | b2d64fb98ab24ec12addc5ae0a773de5578f437c /test/libsolidity/syntaxTests/inheritance/override | |
parent | 694754b4fe410abfa0661e29dd3e6d4d1ea1283e (diff) | |
parent | 19f6b5ad05a20800babca49bfea25d3fadf46906 (diff) | |
download | dexon-solidity-e950fd434aa4394e669c7277ba229595e0a4bc08.tar dexon-solidity-e950fd434aa4394e669c7277ba229595e0a4bc08.tar.gz dexon-solidity-e950fd434aa4394e669c7277ba229595e0a4bc08.tar.bz2 dexon-solidity-e950fd434aa4394e669c7277ba229595e0a4bc08.tar.lz dexon-solidity-e950fd434aa4394e669c7277ba229595e0a4bc08.tar.xz dexon-solidity-e950fd434aa4394e669c7277ba229595e0a4bc08.tar.zst dexon-solidity-e950fd434aa4394e669c7277ba229595e0a4bc08.zip |
Merge pull request #4403 from ethereum/syntaxTestsVisibility
Specify default visibility in syntax tests (pt. 2)
Diffstat (limited to 'test/libsolidity/syntaxTests/inheritance/override')
-rw-r--r-- | test/libsolidity/syntaxTests/inheritance/override/add_view.sol | 4 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/inheritance/override/remove_view.sol | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/syntaxTests/inheritance/override/add_view.sol b/test/libsolidity/syntaxTests/inheritance/override/add_view.sol index 9973b23e..21e43792 100644 --- a/test/libsolidity/syntaxTests/inheritance/override/add_view.sol +++ b/test/libsolidity/syntaxTests/inheritance/override/add_view.sol @@ -1,4 +1,4 @@ contract B { function f() public {} } -contract C is B { function f() view {} } +contract C is B { function f() public view {} } // ---- -// TypeError: (56-76): Overriding function changes state mutability from "nonpayable" to "view". +// TypeError: (56-83): Overriding function changes state mutability from "nonpayable" to "view". diff --git a/test/libsolidity/syntaxTests/inheritance/override/remove_view.sol b/test/libsolidity/syntaxTests/inheritance/override/remove_view.sol index e58f6b20..cc785858 100644 --- a/test/libsolidity/syntaxTests/inheritance/override/remove_view.sol +++ b/test/libsolidity/syntaxTests/inheritance/override/remove_view.sol @@ -1,4 +1,4 @@ -contract B { function f() view {} } +contract B { function f() public view {} } contract C is B { function f() public {} } // ---- -// TypeError: (54-76): Overriding function changes state mutability from "view" to "nonpayable". +// TypeError: (61-83): Overriding function changes state mutability from "view" to "nonpayable". |