[Pas2js] Testing generics

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Oct 26 14:08:38 CEST 2019


On Sat, 26 Oct 2019 05:03:55 -0700 (MST)
warleyalex via Pas2js <pas2js at lists.freepascal.org> wrote:

> I had a new TOject definition class in somewhere that was causing this
> "Uncaught TypeError: o.AfterConstruction is not a function   ---> 
> rtl.js:295". I deleted this TObject definition and the run as
> expected.
> 
> (*
> type
>   TObject = class
>   public
>     constructor Create;
>   end;  
> *)

Yes, and I wrote it works here, please give a complete example.

Mattias


More information about the Pas2js mailing list