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

9 lines
185 B
Solidity

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