solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/494_builtin_sha256_reject_gas.sol
2018-06-25 17:17:18 +02:00

8 lines
220 B
Solidity

contract C {
function f() public {
sha256.gas();
}
}
// ----
// TypeError: (47-57): Member "gas" not found or not visible after argument-dependent lookup in function (bytes memory) pure returns (bytes32)