pascalabcnet/TestSuite/extensionmethods10u.pas
Бондарев Иван e269115ff1 extensionmethod in units
bug fix: unary operator + caused the internal error
new tests in test suite
2015-10-24 20:18:49 +02:00

7 lines
161 B
ObjectPascal

unit extensionmethods10u;
procedure MyForEach<T>(self: sequence of T; action: T -> ()); extensionmethod;
begin
foreach x: T in Self do
action(x);
end;
end.