solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/503_builtin_sha256_reject_value.sol

8 lines
253 B
Solidity
Raw Normal View History

contract C {
function f() public {
sha256.value();
}
}
// ----
// TypeError: (47-59): Member "value" not found or not visible after argument-dependent lookup in function () pure returns (bytes32) - did you forget the "payable" modifier?