fpc/tests/webtbs/tw34021.pp
svenbarth 38ffcff3aa * fix program name of the test
git-svn-id: trunk@39606 -
2018-08-12 07:21:58 +00:00

26 lines
414 B
ObjectPascal

{ %NORUN }
program tw34021;
{$mode objfpc}{$H+}
{$COperators On}
type
TMyClass = class
end;
operator + (left: TMyClass; right: array of integer): TMyClass; overload;
var
i: integer;
begin
for i in right do
writeln('add ', i);
result := left;
end;
var
c: TMyClass;
begin
c += [1, 2, 3]; // ERROR: Operator is not overloaded: "TMyClass" + "Set Of Byte"
end.