mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
211 B
Solidity
10 lines
211 B
Solidity
contract B {}
|
|
contract A is B {}
|
|
contract C {
|
|
function f() public pure {
|
|
A a = A(new B());
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 9640: (85-95): Explicit type conversion not allowed from "contract B" to "contract A".
|