[Pas2js] My 1st type helper
    Mattias Gaertner 
    nc-gaertnma at netcologne.de
       
    Sat Mar  2 00:44:44 CET 2019
    
    
  
On Fri, 1 Mar 2019 22:48:29 +0100
Sven Barth via Pas2js <pas2js at lists.freepascal.org> wrote:
>[...]
> Also FPC 3.2 supports helpers for interfaces. ;)
Impressive!
I only found one test "test/tthlp24.pp", which only tests
methods and class methods.
What about constructors?
Constructors create a fatal error:
type
  ITestIntf = interface(IUnknown)
  end;
  THelper = type helper for ITestIntf
    constructor Create(s: string);
  end;
  TTest = class(TInterfacedObject, ITestIntf)
  end;
constructor THelper.Create(s: string);
begin  // Fatal: Internal error 200305103
  writeln('THelper.Create ',s);
end;
Mattias
    
    
More information about the Pas2js
mailing list