@@ -1237,17 +1237,17 @@ elab ist info emode opts fn tm
1237 elab' ina fc (PRunElab fc' tm ns) =
1237 elab' ina fc (PRunElab fc' tm ns) =
1238 do attack
1238 do attack
1239 n <- getNameFrom (sMN 0 "tacticScript")
1239 n <- getNameFrom (sMN 0 "tacticScript")
1240− n' <- getNameFrom (sMN 0 "tacticExpr")
1241 let scriptTy = RApp (Var (sNS (sUN "Elab")
1240 let scriptTy = RApp (Var (sNS (sUN "Elab")
1242 ["Elab", "Reflection", "Language"]))
1241 ["Elab", "Reflection", "Language"]))
1243 (Var unitTy)
1242 (Var unitTy)
1244 claim n scriptTy
1243 claim n scriptTy
1246− letbind n' scriptTy (Var n)
1245+ attack -- to get an extra hole
1248 elab' ina (Just fc') tm
1246 elab' ina (Just fc') tm
1247+ script <- get_guess
1248+ solve -- eliminate the hole. Becuase there are no references, the script is only in the binding
1249 env <- get_env
1249 env <- get_env
1250− runElabAction ist (maybe fc' id fc) env (P Bound n' Erased) ns
1250+ runElabAction ist (maybe fc' id fc) env script ns
1252 elab' ina fc (PConstSugar constFC tm) =
1252 elab' ina fc (PConstSugar constFC tm) =
1253 -- Here we elaborate the contained term, then calculate
1253 -- Here we elaborate the contained term, then calculate