diff options
author | chriseth <chris@ethereum.org> | 2018-05-15 18:53:23 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-05-16 15:48:03 +0800 |
commit | 203475ef020d8bf0c0334e51580dc798185b2359 (patch) | |
tree | 046c024b983ff642003157a25dccba84b503845c /test/libsolidity/syntaxTests/constants | |
parent | 894122c508c4de07553c7e2908ae36821e812a9f (diff) | |
download | dexon-solidity-203475ef020d8bf0c0334e51580dc798185b2359.tar dexon-solidity-203475ef020d8bf0c0334e51580dc798185b2359.tar.gz dexon-solidity-203475ef020d8bf0c0334e51580dc798185b2359.tar.bz2 dexon-solidity-203475ef020d8bf0c0334e51580dc798185b2359.tar.lz dexon-solidity-203475ef020d8bf0c0334e51580dc798185b2359.tar.xz dexon-solidity-203475ef020d8bf0c0334e51580dc798185b2359.tar.zst dexon-solidity-203475ef020d8bf0c0334e51580dc798185b2359.zip |
Adjust tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/constants')
-rw-r--r-- | test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol | 1 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/constants/cyclic_dependency_4.sol | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol b/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol index 00f9bb0f..0728c962 100644 --- a/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol +++ b/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol @@ -5,6 +5,7 @@ contract C { uint constant d = 2 + a; } // ---- +// Warning: (98-110): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. The provided argument of type uint256 is not implicitly convertible to expected type bytes memory. // TypeError: (17-40): The value of the constant a has a cyclic dependency via c. // TypeError: (71-111): The value of the constant c has a cyclic dependency via d. // TypeError: (117-140): The value of the constant d has a cyclic dependency via a. diff --git a/test/libsolidity/syntaxTests/constants/cyclic_dependency_4.sol b/test/libsolidity/syntaxTests/constants/cyclic_dependency_4.sol index f01cb98e..8954e6a3 100644 --- a/test/libsolidity/syntaxTests/constants/cyclic_dependency_4.sol +++ b/test/libsolidity/syntaxTests/constants/cyclic_dependency_4.sol @@ -3,4 +3,6 @@ contract C { uint constant b = 7; uint constant c = 4 + uint(keccak256(d)); uint constant d = 2 + b; -}
\ No newline at end of file +} +// ---- +// Warning: (98-110): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. The provided argument of type uint256 is not implicitly convertible to expected type bytes memory. |