solidity/test/libsolidity/semanticTests/constructor/constructor_static_array_argument.sol
2020-07-07 12:16:18 +02:00

17 lines
272 B
Solidity

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