E2528 Type parameters not allowed on this method (Object Pascal)

From Appmethod Topics
Jump to: navigation, search

Go Up to Error and Warning Messages (Object Pascal) Index

This error message occurs when you are trying to build a class by using collection style parameter. Constructors and destructors do not support parameterized methods.

  TFoo<T: class> = class(TObject)
    constructor CreateEx<T>; // E2528

See Also