mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 15:47:53 +02:00
17 lines
201 B
ObjectPascal
17 lines
201 B
ObjectPascal
{ %FAIL }
|
|
|
|
program toperator90;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
{ overloading the explicit assignment is NOT allowed }
|
|
|
|
operator Explicit (aArg: LongInt): Boolean;
|
|
begin
|
|
Result := aArg <> 0;
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|