solidity/test/libsolidity/syntaxTests/literalSuffixes/parameters/overloading_address_vs_payable.sol

10 lines
465 B
Solidity

function suffix(address) pure suffix returns (address) {}
function suffix(address payable) pure suffix returns (address payable) {}
contract C {
address payable a = 0x1234567890123456789012345678901234567890 suffix;
}
// ----
// TypeError 2998: (74-89): This literal suffix function is not usable as a suffix because no literal is implicitly convertible to its parameter type.
// TypeError 2144: (213-219): No matching declaration found after variable lookup.