mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add test for single non-bytes argument.
This commit is contained in:
parent
203475ef02
commit
03f60410c9
@ -0,0 +1,12 @@
|
||||
contract C {
|
||||
function f() pure public {
|
||||
g(keccak256(uint(2)));
|
||||
g(sha256(uint(2)));
|
||||
g(ripemd160(uint(2)));
|
||||
}
|
||||
function g(bytes32) pure internal {}
|
||||
}
|
||||
// ----
|
||||
// Warning: (54-72): 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: (85-100): 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: (113-131): 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.
|
Loading…
Reference in New Issue
Block a user