tw0866.pp 295 B

1234567891011121314151617
  1. {$mode objfpc}
  2. Type
  3. ts = set of (tse);
  4. ts2 = set of (t1,t2);
  5. enum3 = (tm1:=-1,t0,tp1);
  6. ts3 = set of t0 .. tp1;
  7. var
  8. f:ts;
  9. f2 : ts2;
  10. f3 : ts3;
  11. begin
  12. f2:=f2+[t2];
  13. f2:=f2+[t1];
  14. f:=f+[tse]; // compiler says that set elements are not compatible
  15. { f3:=[tm1];}
  16. end.