mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 19:48:31 +02:00

- fix for-in loop for string const array - add some test from Alexander S. Klenin (issue #0014990) git-svn-id: trunk@14041 -
11 lines
168 B
ObjectPascal
11 lines
168 B
ObjectPascal
{mode objfpc}
|
|
{$apptype console}
|
|
type T = array [1..3] of Char;
|
|
var
|
|
a: array [1..3] of T = ('asd', 'sdf', 'ddf');
|
|
s: T;
|
|
begin
|
|
for s in a do
|
|
Writeln(s);
|
|
end.
|