Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzguido committed Oct 24, 2023
1 parent 81dd29d commit 1c064f8
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 1c064f8

Please sign in to comment.