fpc/tests/webtbs/tw9085.pp
Jonas Maebe ba95cc22ee * only allow automatic type conversions of array constructors of
char to pchar/array of char, rather than of arbitrary array
    constructors (mantis #9085)

git-svn-id: trunk@7670 -
2007-06-15 17:16:44 +00:00

26 lines
311 B
ObjectPascal

program chatserver;
{$mode objfpc}
procedure Sendln(MsgType: Longint; Str: PChar);
begin
halt(1);
end;
procedure Sendln(MsgType: Longint; Str: array of PChar);
begin
halt(0);
end;
procedure Sendln(MsgType: Longint; Str: array of char);
begin
halt(1);
end;
begin
Sendln(1, ['str1', 'str2'])
end.