solidity/test/libsolidity/semanticTests/constructor/constructor_static_array_argument.sol

17 lines
279 B
Solidity
Raw Normal View History

contract C {
uint256 public a;
uint256[3] public b;
constructor(uint256 _a, uint256[3] memory _b) public {
a = _a;
b = _b;
}
}
// ----
// constructor(): 1, 2, 3, 4 ->
// a() -> 1
// b(uint256): 0 -> 2
// b(uint256): 1 -> 3
// b(uint256): 2 -> 4