Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzguido committed Nov 14, 2023
1 parent a9589a5 commit 78e4d9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/typeclasses/Inlining.fst
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ let elem' #a {|d : inhab a|} =
[@@ tcnorm]
instance inhab_unit : inhab unit = { elem = fun () -> admit #unit () }

(* This will only succeed if the found instance is inlined, sa
(* This will only succeed if the found instance is inlined, as
* can be seen from the failure if one uses --tcnorm false *)
(* This now fails, since we don't unfold methods between phases, so the
* verification happens over the interface and not the definitions. *)
[@@expect_failure]
let f (u:unit) =
let t = elem' #unit () in
assert (forall y. y == 1)
Expand Down

0 comments on commit 78e4d9f

Please sign in to comment.