fpc/tests/test/tforin11.pp
paul 5752be310d compiler:
- fix for-in loop for string const array
  - add some test from Alexander S. Klenin
(issue #0014990)

git-svn-id: trunk@14041 -
2009-11-04 12:07:42 +00:00

18 lines
196 B
ObjectPascal

{ %FAIL}
// test that wrong type using for the for-in loop fails
program tforin11;
{$mode objfpc}{$H+}
{$apptype console}
var
s: String;
b: byte;
begin
for b in s do
write(b);
end.