aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/contract_to_unrelated_contract.sol
blob: b0a4875f32eb84f65324c39eac752cc5f82a1021 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract A {}
contract B {}
contract C {
  function f() public pure {
    B b = B(new A());
  }
}
// ----
// TypeError: (80-90): Explicit type conversion not allowed from "contract A" to "contract B".