File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -1314,25 +1314,6 @@ infer typer = loop
13141314
13151315 VOptional _O' -> do
13161316 case ks of
1317- -- The old rule was:
1318- --
1319- -- Γ ⊢ e : Optional T
1320- -- Γ ⊢ v : T'
1321- -- T === T'
1322- -- ──────────────────────────────────
1323- -- Γ ⊢ e with ?.ks… = v : Optional T
1324- --
1325- -- Here T is _O' and T' = tV'.
1326- --
1327- -- The new rule is:
1328- --
1329- -- Γ ⊢ e : Optional T
1330- -- Γ, x : T ⊢ x with ks… = v : T₁
1331- -- T ≡ T₁
1332- -- ────────────────────────────────── x ∉ FV(v)
1333- -- Γ ⊢ e with ?.ks… = v : Optional T
1334- --
1335- -- Here T is _O' and T₁ is tV'.
13361317
13371318 -- (Some x) with ? = v is valid iff the type of x is the same as the type of v.
13381319 WithQuestion :| [] -> do
You can’t perform that action at this time.
0 commit comments