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

16 lines
185 B
Solidity
Raw Normal View History

2020-03-10 17:15:50 +00:00
contract B {
uint immutable x;
constructor() public {
x = 3;
}
}
contract C is B {
uint immutable y;
constructor() public {
y = 3;
}
}
// ----