Skip to content

Commit

Permalink
Merge pull request #1954 from actonlang/1953-weaken-seal-check
Browse files Browse the repository at this point in the history
Weakened the leaking seal check
  • Loading branch information
nordlander authored Oct 15, 2024
2 parents 2772754 + c10efd4 commit 345ba41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/Acton/Solver.hs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ reduce' env eq (Seal info t@(TCon _ tc))
-- | castable env t tObject = tyerr t "Leaking actor seal:" -- when we start prohibit sharing of mutable data
| otherwise = reduce env eq (map (Seal info) $ tcargs tc)
reduce' env eq (Seal _ t@(TFX _ fx))
| fx `elem` [FXMut,FXProc] = tyerr t "Leaking actor seal:"
-- | fx `elem` [FXMut,FXProc] = tyerr t "Leaking actor seal:"
| fx `elem` [FXProc] = tyerr t "Leaking actor seal:"
| otherwise = return eq
reduce' env eq (Seal info t) = reduce env eq (map (Seal info) ts)
where ts = leaves t
Expand Down

0 comments on commit 345ba41

Please sign in to comment.