bug0149b.pp 404 B

12345678910111213141516171819202122232425
  1. {there is no crash when tset or c from unit a are used in OuterProcedure,
  2. it's only a problem when using them in a nested procedure/function}
  3. unit bug0149b;
  4. interface
  5. uses t2a;
  6. implementation
  7. Procedure OuterProcedure;
  8. function t(a: byte): byte;
  9. begin
  10. if a = c then t := a else t := 0;
  11. if a in tset {probably same bug}
  12. then t := a
  13. else t := 0
  14. end;
  15. Begin
  16. End;
  17. end.