push_array_literal.sol 221 B

12345678910
  1. // https://github.com/hyperledger/solang/issues/859
  2. contract c {
  3. uint256[3][] s_vec;
  4. function test() public returns (uint256 ret1) {
  5. s_vec.push([1, 2, 3]);
  6. return s_vec[1][1];
  7. }
  8. }
  9. // ---- Expect: diagnostics ----