pascalabcnet/TestSuite/intellisense_tests/extensionmethods1.pas

5 lines
174 B
ObjectPascal
Raw Normal View History

2016-05-29 13:16:22 +03:00
//ä
begin
var l := Seq(2,1,4);
l.OfType&<integer>().ForEach{@(расширение) procedure ForEach<T>(Self: sequence of T; action: T->());@}(x->Print(x));
end.