Explorar o código

Fix for default value of a class of type.

Henrique Gottardi Werlang hai 1 ano
pai
achega
664f8fc2ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;