solidity/test/libsolidity/syntaxTests/types/address/contract_no_fallback_to_payable_address.sol

9 lines
202 B
Solidity
Raw Normal View History

contract C {
function f() public view {
address payable a = address(this);
a;
}
}
// ----
// TypeError: (46-79): Type address is not implicitly convertible to expected type address payable.