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

6 lines
102 B
Solidity

contract C { constructor(uint) {} }
contract D is C {
uint immutable t;
constructor() C(t=2) {}
}