solidity/test/libsolidity/semanticTests/constructor_with_params_inheritance_2.sol

16 lines
231 B
Solidity
Raw Normal View History

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