1
1
mirror of https://github.com/github/semantic.git synced 2025-01-07 16:07:28 +03:00

No need to declare multiple times

Co-Authored-By: Rob Rix <rob.rix@github.com>
This commit is contained in:
joshvera 2018-12-03 15:59:49 -05:00
parent 2d190d8ec9
commit c505b53898

View File

@ -46,7 +46,7 @@ instance ( Member (Allocator address) sig
currentScope' <- currentScope
let lexicalEdges = Map.singleton Lexical [ currentScope' ]
scope <- newScope lexicalEdges
declare (Declaration name) functionSpan (Just scope)
putDeclarationScope (Declaration name) scope
_ <- withScope scope $ do
for_ params $ \param -> do