Skip to content

Commit

Permalink
Update annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilKleistGao committed Jan 13, 2025
1 parent f75954e commit e764069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hkmc2/shared/src/test/mlscript/bbml/bbDisjoint.mls
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ fun badanno2: [outer A, outer B] -> Int ->{A | B} Int
//│ Type: ⊤


fun annohelper: [outer, T extends outer] -> Region[T] ->{T} Pair[out Ref[Int, out T], out Ref[Int, out Any]]
fun annohelper: [outer, T extends outer] -> Region[T] ->{T} Pair[out Ref[Int, out T], out Ref[Int, out ~outer]]
fun annohelper(r1) =
region r2 in
fork((_ => r1.ref 1), (_ => r2.ref 2))
annohelper
//│ Type: forall(outer) 'T: (Region['T]) ->{'T} Pair[out Ref[Int, out 'T], out Ref[Int, ?]]
//│ Type: forall(outer) 'T: (Region['T]) ->{'T} Pair[out Ref[Int, out 'T], out Ref[Int, out ¬outer]]
//│ Where:
//│ 'T <: outer

Expand Down

0 comments on commit e764069

Please sign in to comment.