pascalabcnet/TestSuite/intellisense_tests/extensionmethods9.pas
Бондарев Иван c1fbe7a447 fix #1613
2018-12-31 11:12:08 +01:00

7 lines
295 B
ObjectPascal

begin
var ch: char;
ch.IsDigit{@(расширение) function char.IsDigit(): boolean;@};
char.IsDigit{@static function char.IsDigit(c: char): boolean;@}(ch);
var a: array of byte;
a.Reverse{@(расширение sequence of T) function Reverse<byte>(): sequence of byte;@};
end.