solidity/test/libsolidity/semanticTests/constructor_with_params_inheritance_2.sol
2022-05-19 20:23:28 +02:00

14 lines
193 B
Solidity

contract C {
uint public i;
uint public k;
constructor(uint newI, uint newK) {
i = newI;
k = newK;
}
}
contract D is C(2, 1) {}
// ----
// i() -> 2
// k() -> 1