solidity/test/libsolidity/syntaxTests/conversion/explicit_conversion_this_to_payable.sol

9 lines
237 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
address payable p = payable(this);
address payable q = payable(address(this));
}
}
// ----
// TypeError: (63-76): Explicit type conversion not allowed from "contract C" to "address payable".