mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 17:08:11 +02:00
23 lines
330 B
ObjectPascal
23 lines
330 B
ObjectPascal
unit uw29859b;
|
|
|
|
{$mode delphi}
|
|
|
|
interface
|
|
|
|
type
|
|
TMyRecord<T> = record
|
|
public
|
|
FValue: T;
|
|
class operator LogicalAnd(A: TMyRecord<T>; B: Boolean): TMyRecord<T>;
|
|
end;
|
|
|
|
implementation
|
|
|
|
class operator TMyRecord<T>.LogicalAnd(A: TMyRecord<T>; B: Boolean): TMyRecord<T>;
|
|
begin
|
|
Result.FValue := A.FValue and B;
|
|
|
|
end;
|
|
|
|
end.
|