unresolved_constants.sol 293 B

1234567891011121314
  1. int constant C1 = LEN1;
  2. int constant C3 = foo();
  3. contract c {
  4. int constant C2 = LEN1;
  5. bool[C1] var1;
  6. bool[C2] var22;
  7. }
  8. // ---- Expect: diagnostics ----
  9. // error: 1:19-23: 'LEN1' not found
  10. // error: 2:19-24: cannot call function in constant expression
  11. // error: 5:20-24: 'LEN1' not found