tw4153.pp 450 B

1234567891011121314151617181920212223
  1. { %fail }
  2. { Source provided for Free Pascal Bug Report 4153 }
  3. { Submitted by "Ivo Steinmann" on 2005-07-03 }
  4. { e-mail: [email protected] }
  5. type
  6. Enum1 = (a, b, c);
  7. Enum2 = (x, y, z);
  8. const
  9. // The next line should fail
  10. Foobar = [b, z];
  11. begin
  12. if a in Foobar then
  13. WriteLn('a in Foobar'); // not printed
  14. if b in Foobar then
  15. WriteLn('b in Foobar'); // printed
  16. if c in Foobar then
  17. WriteLn('c in Foobar'); // printed
  18. end.