fpc/tests/webtbs/tw40745.pp

17 lines
312 B
ObjectPascal

program test;
{$mode objfpc}
type
TSetOfChar = set of char;
TMyObject=class
class function Method(setofchar: TSetOfChar): Boolean; inline;
end;
class function TMyObject.Method(setofchar: TSetOfChar): Boolean;
var sym: char=#0;
begin
Result:=sym in setofchar;
end;
begin
TMyObject.Method([]);
end.