diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-16 17:12:25 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-16 17:12:25 +0800 |
commit | 221a4d1f1f8a644ef9905f8f1d4a9a4428ec0489 (patch) | |
tree | 46b41743c2057f2ea8dd08619337ca1905bd1483 /test/libsolidity/syntaxTests/constants | |
parent | 23adea88fdc7eafc5b67b759b4c2418bd6b93aa6 (diff) | |
download | dexon-solidity-221a4d1f1f8a644ef9905f8f1d4a9a4428ec0489.tar dexon-solidity-221a4d1f1f8a644ef9905f8f1d4a9a4428ec0489.tar.gz dexon-solidity-221a4d1f1f8a644ef9905f8f1d4a9a4428ec0489.tar.bz2 dexon-solidity-221a4d1f1f8a644ef9905f8f1d4a9a4428ec0489.tar.lz dexon-solidity-221a4d1f1f8a644ef9905f8f1d4a9a4428ec0489.tar.xz dexon-solidity-221a4d1f1f8a644ef9905f8f1d4a9a4428ec0489.tar.zst dexon-solidity-221a4d1f1f8a644ef9905f8f1d4a9a4428ec0489.zip |
Split warning for multi arguments for hash functions
Diffstat (limited to 'test/libsolidity/syntaxTests/constants')
-rw-r--r-- | test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol | 3 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/constants/cyclic_dependency_4.sol | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol b/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol index 0728c962..08d20c3a 100644 --- a/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol +++ b/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol @@ -5,7 +5,8 @@ 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. +// Warning: (98-110): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. +// Warning: (98-110): 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 8954e6a3..df5cd969 100644 --- a/test/libsolidity/syntaxTests/constants/cyclic_dependency_4.sol +++ b/test/libsolidity/syntaxTests/constants/cyclic_dependency_4.sol @@ -5,4 +5,5 @@ contract C { uint constant d = 2 + b; } // ---- -// 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. +// Warning: (98-110): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. +// Warning: (98-110): The provided argument of type uint256 is not implicitly convertible to expected type bytes memory. |