solidity/test/libsolidity/syntaxTests/immutable/inheritance_ctor_argument.sol
2023-07-14 15:29:32 +02:00

13 lines
161 B
Solidity

contract B {
uint immutable x;
constructor(uint _x) {
x = _x;
}
}
contract C is B {
uint immutable y;
constructor() B(y = 3) { }
}