on master help sign in
Fix scoping error in proof scripts
32c8104Edwin Brady
src/Idris/ElabTerm.hs+3−1
@@ -553,7 +553,9 @@ collectDeferred t = return t
553-- Running tactics directly
553-- Running tactics directly
554
554
555runTac :: Bool -> IState -> PTactic -> ElabD ()
555runTac :: Bool -> IState -> PTactic -> ElabD ()
556−runTac autoSolve ist tac = runT (fmap (addImpl ist) tac) where
556+runTac autoSolve ist tac = do env <- get_env
557+ runT (fmap (addImplBound ist (map fst env)) tac)
558+ where
557 runT (Intro []) = do g <- goal
559 runT (Intro []) = do g <- goal
558 attack; intro (bname g)
560 attack; intro (bname g)
559 where
561 where