t_bad_with.LST 302 B

123456789101112131415
  1. Listing:
  2. 1 MODULE TBadWith;
  3. 2 TYPE Point = RECORD x, y : INTEGER END;
  4. 3 VAR p : Point; n : INTEGER;
  5. ***** ^ not supported in this phase
  6. 4 BEGIN
  7. 5 n := 1;
  8. 6 WITH p DO x := 2 END
  9. ***** ^ not supported in this phase
  10. 7 END TBadWith.
  11. 2 errors