fpc/tests/webtbf/tw36631a.pp
svenbarth a1f78b242a Merged revision(s) 44082 from trunk:
* fix for Mantis : 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 -
2020-02-09 19:05:38 +00:00

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.