[project @ 1998-11-26 09:17:22 by sof]
[ghc-hetmet.git] / ghc / compiler / coreSyn / CoreSyn.lhs
index 4d1f954..c76e75f 100644 (file)
@@ -478,7 +478,12 @@ collectArgs expr
        (expr, tacc, vacc) }
 
     tyvars (App fun (TyArg t)) tacc = tyvars fun (t:tacc)
-    tyvars fun tacc                = (expr, tacc)
+    tyvars fun tacc                = (fun, tacc)
+     -- WAS: tyvars fun tacc       = (expr, tacc)
+     --   This doesn't look right (i.e., Plain Wrong),
+     --   collectArgs should return the the function and
+     --   not the whole expr.      -- Laszlo 8/98
+
 \end{code}