Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion frontend/src/Language/Granule/Checker/Kinding.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,12 @@ requiresSolver s ty = do
case result of
-- Checking as coeffect or effect caused an error so ignore
Left _ -> return False
Right _ -> putChecker >> return True
Right _ ->
-- avoid putting sets into the solver as the solver is weak on this
case isSet ty of
Just _ -> putChecker >> return False
Nothing ->
putChecker >> return True

instance Unifiable Substitutors where
unify' (SubstT t) (SubstT t') = unify' t t'
Expand Down
3 changes: 3 additions & 0 deletions frontend/tests/cases/negative/simple/set.gr.output
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Type checking failed:
Falsifiable theorem: frontend/tests/cases/negative/simple/set.gr:14:1:
When checking `non-example`, {Contacts} is not approximatable by {Location} for type Set Privilege
Loading