solidity/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_internal_functions.sol

12 lines
376 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
bytes32 h = keccak256(abi.encodePacked(keccak256, f, this.f{gas: 2}, blockhash));
h;
}
}
// ----
2018-05-15 10:53:23 +00:00
// TypeError: (91-100): This type cannot be encoded.
// TypeError: (102-103): This type cannot be encoded.
// TypeError: (105-119): This type cannot be encoded.
// TypeError: (121-130): This type cannot be encoded.