2018-05-16 07:46:36 +00:00
|
|
|
contract C {
|
|
|
|
function f() pure public {
|
|
|
|
g(keccak256(uint(2)));
|
|
|
|
g(sha256(uint(2)));
|
|
|
|
g(ripemd160(uint(2)));
|
|
|
|
}
|
|
|
|
function g(bytes32) pure internal {}
|
|
|
|
}
|
|
|
|
// ----
|
2018-05-23 13:39:26 +00:00
|
|
|
// TypeError: (64-71): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested.
|
|
|
|
// TypeError: (92-99): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested.
|
|
|
|
// TypeError: (123-130): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested.
|