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

8 lines
186 B
Solidity

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