t_bad_setconst.mod 222 B

1234567
  1. MODULE TBadSetConst;
  2. // A SET CONST whose element is not a compile-time constant is rejected:
  3. // its value cannot become static data.
  4. VAR x : INTEGER;
  5. CONST S = {x};
  6. VAR y : SET OF [0..255];
  7. BEGIN y := S END TBadSetConst.