tforin11.pp 177 B

12345678910111213141516
  1. { %FAIL}
  2. // test that wrong type using for the for-in loop fails
  3. program tforin11;
  4. {$mode objfpc}{$H+}
  5. var
  6. s: String;
  7. b: byte;
  8. begin
  9. for b in s do
  10. write(b);
  11. end.