mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
25 lines
285 B
Solidity
25 lines
285 B
Solidity
contract A {
|
|
function f() public {
|
|
new B();
|
|
}
|
|
}
|
|
|
|
|
|
contract B {
|
|
function f() public {}
|
|
}
|
|
|
|
|
|
contract C {
|
|
function f() public {
|
|
new B();
|
|
}
|
|
}
|
|
|
|
// ====
|
|
// compileToEwasm: also
|
|
// compileViaYul: also
|
|
// ----
|
|
// constructor() ->
|
|
// gas irOptimized: 104337
|