git-svn-id: trunk@47336 - (cherry picked from commit 71b8d5643ddcd964f2432d45dc59544f028d443e)
@@ -15388,7 +15388,7 @@ begin
RaiseNotSupported(El,AContext,20180405093512);
end;
NeedInitFunction:=(pcsfPublished in Scope.Flags) or HasTypeInfo(El,AContext)
- or (IntfKind<>'');
+ or (IntfKind<>'') or (coShortRefGlobals in Options);
if NeedInitFunction then