aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/contract_to_address_implicitly.sol
blob: 8be9daacbc154cf99e88d557476fa27483a3cea5 (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
  function f() public view {
    address a = this;
    a;
  }
}
// ----
// TypeError: (46-62): Type contract C is not implicitly convertible to expected type address.