mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
201 B
Solidity
10 lines
201 B
Solidity
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".
|