mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 20:49:24 +02:00

* fix for Mantis #36631: it's an error if a POINT after an array is not followed by an identifier + added tests ........ git-svn-id: branches/fixes_3_2@44143 -
24 lines
338 B
ObjectPascal
24 lines
338 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tw36631a;
|
|
|
|
{$APPTYPE CONSOLE}
|
|
{$mode objfpc}{$H+}
|
|
|
|
uses
|
|
Classes,
|
|
SysUtils;
|
|
|
|
var
|
|
LongStr: String;
|
|
SingleStr: String;
|
|
|
|
begin
|
|
LongStr := 'Some example, test text. Another one, or something like that.';
|
|
|
|
SingleStr := LongStr.Split([',', '.']).[1];
|
|
writeln(SingleStr); // ' test text'
|
|
|
|
writeln('done');
|
|
end.
|