Skip to content

Commit

Permalink
Allow cross-effect subtyping in MLish
Browse files Browse the repository at this point in the history
  • Loading branch information
gebner committed Jan 8, 2025
1 parent a1e6b7b commit 2143ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typechecker/FStarC.TypeChecker.Rel.fst
Original file line number Diff line number Diff line change
Expand Up @@ -4031,7 +4031,7 @@ and solve_t' (problem:tprob) (wl:worklist) : solution =
c1 |> U.comp_effect_name |> Env.norm_eff_name env,
c2 |> U.comp_effect_name |> Env.norm_eff_name env in

if not (Ident.lid_equals eff1 eff2) then
if not (Options.ml_ish () || Ident.lid_equals eff1 eff2) then
giveup wl (Thunk.mk fun _ -> "computation type mismatch in arrow: " ^ string_of_lid eff1 ^ " vs " ^ string_of_lid eff2) orig

else
Expand Down

0 comments on commit 2143ecb

Please sign in to comment.