mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 05:48:34 +02:00
17 lines
312 B
ObjectPascal
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. |