solidity/test/libsolidity/syntaxTests/immutable/inheritance_ctor.sol
2020-07-07 12:16:18 +02:00

16 lines
171 B
Solidity

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