Explorar el Código

pastojs: fixed shortrefglobals for minimal class interface, issue #38042

git-svn-id: trunk@47336 -
(cherry picked from commit 71b8d5643ddcd964f2432d45dc59544f028d443e)
Mattias Gaertner hace 4 años
padre
commit
54eca9dc06
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/pastojs/src/fppas2js.pp

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

@@ -15388,7 +15388,7 @@ begin
           RaiseNotSupported(El,AContext,20180405093512);
           RaiseNotSupported(El,AContext,20180405093512);
         end;
         end;
       NeedInitFunction:=(pcsfPublished in Scope.Flags) or HasTypeInfo(El,AContext)
       NeedInitFunction:=(pcsfPublished in Scope.Flags) or HasTypeInfo(El,AContext)
-                        or (IntfKind<>'');
+                        or (IntfKind<>'') or (coShortRefGlobals in Options);
       end;
       end;
 
 
     if NeedInitFunction then
     if NeedInitFunction then