Skip to content

Commit

Permalink
[ fix agda#5787 ] Leave checking of modality of instance candidates t…
Browse files Browse the repository at this point in the history
…o later phase
  • Loading branch information
jespercockx committed Feb 11, 2022
1 parent ba99b8e commit dcc2ae8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/full/Agda/TypeChecking/InstanceArguments.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ initialInstanceCandidates t = do
vars = [ Candidate LocalCandidate x t (isOverlappable info)
| (x, Dom{domInfo = info, unDom = (_, t)}) <- varsAndRaisedTypes
, isInstance info
, usableModality info
]

-- {{}}-fields of variables are also candidates
Expand Down
7 changes: 7 additions & 0 deletions test/Succeed/Issue5787.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

postulate
A B : Set
f : @0 {{A}} B

g : @0 {{A}} B
g = f

0 comments on commit dcc2ae8

Please sign in to comment.