Explorar o código

* function name doesn't call the function in macpas

git-svn-id: trunk@1376 -
peter %!s(int64=20) %!d(string=hai) anos
pai
achega
d1d2b0e1a1
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  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;