📄 testgenericclassoperators.out
字号:
program TestGenericClassOperators;
{$APPTYPE CONSOLE}
{ AFS December 2007
This code compiles, but is not semantically meaningfull.
It is test cases for the code-formating utility
Test new generics syntax - code from TridenT
}
uses
SysUtils;
type
//Ok
TOperateur<T> = class
Champ1: T;
procedure Test(const Value: TOperateur<T>);
class operator Negative(const Value: TOperateur<T>): TOperateur<T>;
end;
//Ok
TMonRecord1 = record
procedure Test(const Value: TMonRecord1);
class operator Negative(const Value: TMonRecord1): TMonRecord1;
end;
//NOk
TMonRecord<T> = record
Champ1: T;
procedure Test(const Value: TMonRecord<T>);
//E2086 Le type 'TMonRecord<T>' n'est pas encore compl鑤ement d閒ini
//Op閞ateur Unaire -
class operator Negative(const Value: TMonRecord<T>): TMonRecord<T>;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -