Browse Source

Fix for default value of a class of type.

Henrique Gottardi Werlang 1 year ago
parent
commit
664f8fc2ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/pastojs/src/fppas2js.pp

+ 1 - 1
packages/pastojs/src/fppas2js.pp

@@ -15131,7 +15131,7 @@ begin
         ReleaseEvalValue(Value);
         ReleaseEvalValue(Value);
       end;
       end;
       end
       end
-    else if (C=TPasClassType) or (C=TPasPointerType) then
+    else if (C=TPasClassType) or (C=TPasPointerType) or (C=TPasClassOfType) then
       begin
       begin
       Result:=CreateLiteralNull(El);
       Result:=CreateLiteralNull(El);
       exit;
       exit;