Fixed the type of a function name to avoid confusing the pass to remove free names later on

This commit is contained in:
Neil Brown 2008-03-23 00:11:11 +00:00
parent dd7b0268b2
commit 78c2160eb4

View File

@ -294,7 +294,8 @@ functionCall = do funcName <- name
Just _ -> return $ A.IntrinsicFunctionCall (A.nameMeta
funcName) (A.nameName funcName) es
Nothing -> return $
A.FunctionCall (A.nameMeta funcName) funcName es
A.FunctionCall (A.nameMeta funcName)
(funcName {A.nameType = A.FunctionName}) es
data InnerBlockLineState = Decls | NoMoreDecls | Mixed deriving (Eq)