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

11 lines
235 B
Solidity
Raw Normal View History

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