Skip to content

Commit

Permalink
#7085: Mimer not recognising qualified hints (#7088)
Browse files Browse the repository at this point in the history
fix #7085: Mimer not recognising qualified hints
  • Loading branch information
UlfNorell committed Feb 5, 2024
1 parent 2925d77 commit 208f2bf
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/full/Agda/Mimer/Mimer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ collectComponents opts costs ii mDefName whereNames metaId = do
}
metaVar <- lookupLocalMeta metaId
hintNames <- getEverythingInScope metaVar
components' <- foldM go components hintNames
components' <- foldM go components $ explicitHints ++ (hintNames \\ explicitHints)
return BaseComponents
{ hintFns = doSort $ hintFns components'
, hintDataTypes = doSort $ hintDataTypes components'
Expand Down
13 changes: 13 additions & 0 deletions test/interaction/Issue7085.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

postulate A : Set

module M where
postulate a : A

x : A
x = {! M.a !} -- No solution found

open M

y : A
y = {! M.a !} -- works
3 changes: 3 additions & 0 deletions test/interaction/Issue7085.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
top_command (cmd_load currentFile [])
goal_command 0 cmd_autoOne "M.a"
goal_command 1 cmd_autoOne "M.a"
10 changes: 10 additions & 0 deletions test/interaction/Issue7085.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(agda2-status-action "")
(agda2-info-action "*Type-checking*" "" nil)
(agda2-highlight-clear)
(agda2-status-action "")
(agda2-info-action "*All Goals*" "?0 : A ?1 : A " nil)
((last . 1) . (agda2-goals-action '(0 1)))
(agda2-give-action 0 "M.a")
((last . 1) . (agda2-goals-action '(1)))
(agda2-give-action 1 "a")
((last . 1) . (agda2-goals-action '()))

0 comments on commit 208f2bf

Please sign in to comment.