[Pas2js] Class constant with "external" class

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Feb 22 12:50:47 CET 2018


On Fri, 2 Feb 2018 13:28:46 -0600 (CST)
warleyalex via Pas2js <pas2js at lists.freepascal.org> wrote:

>[...]
> Can you confirm when we define "class const" field with external class, the
> code completion stop worlking :(
> 
> type
>   TBase = class external name 'TBase' (TJSObject)
>   public
>     class var cPublic : String;
>     class const cTemp = '{"info":"telephone")'; // if I comment this line
> code completion works as expected!
>   end; 

As 'class const' is superfluous and not supported by Delphi, I removed
it from trunk pas2js.

Mattias


More information about the Pas2js mailing list