Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraks committed Sep 18, 2023
1 parent 6bfa406 commit 94a1c75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/scala/effqualfsub/TypeCheck.scala
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,12 @@ def typeCheck(e: Expr)(using Γ: TEnv): (QType, Eff) = e match {
// XXX: in the result type, we include the inner qualifier q as well (as for alloc)
// XXX: check if e is fresh???
// XXX: p.satVars reaches the inner qualifiers too, is that too much?
// An alternative is to return a fresh reference Ref[T^∅]^◆, and kills all `q` and `p`:
// (TRef(t^()) ^ Set(◆), eff ▷ Eff(Map(p.satVars -> Kill)))
// What if `t` is a function type? does it affect anything?
(TRef(QType(t, q)) ^ (q ++ Set(◆)), eff ▷ Eff(Map(p.satVars -> Kill)))


}

def topTypeCheck(e: Expr): (QType, Eff) = {
Expand Down

0 comments on commit 94a1c75

Please sign in to comment.