dynamic_array_push.sol 296 B

12345678910
  1. contract foo {
  2. function test() public {
  3. int[] bar = new int[](2);
  4. assert(bar.length == 0);
  5. bar.push(102, 20);
  6. }
  7. }
  8. // ---- Expect: diagnostics ----
  9. // error: 6:21-25: method 'push()' takes at most 1 argument