solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/493_builtin_keccak256_reject_gas.sol

8 lines
211 B
Solidity

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