tw3450.pp 311 B

12345678910111213141516171819202122
  1. { %fail }
  2. { Source provided for Free Pascal Bug Report 3450 }
  3. { Submitted by "Vincent Snijders" on 2004-12-11 }
  4. { e-mail: [email protected] }
  5. {$mode objfpc}{$H+}
  6. uses
  7. uw3450;
  8. var
  9. A: TA;
  10. begin
  11. A := TA.Create;
  12. // no error here
  13. with A do
  14. I := 9;
  15. // this fails, correctly
  16. A.I := 9;
  17. end.