solidity/test/libsolidity/syntaxTests/immutable/init_in_ctor_param.sol

6 lines
102 B
Solidity
Raw Normal View History

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