Browse Source

* function name doesn't call the function in macpas

git-svn-id: trunk@1376 -
peter 20 years ago
parent
commit
d1d2b0e1a1
1 changed files with 7 additions and 2 deletions
  1. 7 2
      compiler/pexpr.pas

+ 7 - 2
compiler/pexpr.pas

@@ -1192,9 +1192,14 @@ implementation
               (vo_is_funcret in tabstractvarsym(srsym).varoptions) and
               (vo_is_funcret in tabstractvarsym(srsym).varoptions) and
               (
               (
                (token=_LKLAMMER) or
                (token=_LKLAMMER) or
-               (not(m_fpc in aktmodeswitches) and
+               (
+                (
+                 (m_tp7 in aktmodeswitches) or
+                 (m_delphi in aktmodeswitches)
+                ) and
                 (afterassignment or in_args) and
                 (afterassignment or in_args) and
-                not(vo_is_result in tabstractvarsym(srsym).varoptions))
+                not(vo_is_result in tabstractvarsym(srsym).varoptions)
+               )
               ) then
               ) then
             begin
             begin
               storesymtablestack:=symtablestack;
               storesymtablestack:=symtablestack;