fpc/tests/webtbs/tw34332.pp
2018-09-25 19:10:06 +00:00

15 lines
226 B
ObjectPascal

{ %NORUN }
program tw34332;
{$mode objfpc}{$h+}
var
SS: ShortString;
S: String;
begin
SS := Copy(SS, 1); // << project1.lpr(9,14) Error: Type mismatch
S := Copy(S, 1); // << OK
SS := Copy(SS, 1, 1); // << OK
end.