solidity/test/libsolidity/semanticTests/functionCall/creation_function_call_no_args.sol
Daniel Kirchner 44da8507b1 Change default EVM version to Shanghai.
Co-authored-by: Rodrigo Q. Saramago <rodrigoqsaramago@gmail.com>
2023-05-08 16:34:23 +02:00

15 lines
209 B
Solidity

contract C {
uint public i;
constructor() {
i = 2;
}
}
contract D {
function f() public returns (uint r) {
return new C().i();
}
}
// ----
// f() -> 2
// gas legacy: 100175