Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
twitu committed Sep 10, 2023
1 parent 1070b77 commit 92b2566
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions shared/src/test/diff/ocaml/OriginalDraftIntro.mls
Original file line number Diff line number Diff line change
Expand Up @@ -154,23 +154,23 @@ let g x = ( not x
, if true then x else 5)
//│ [ERROR] Type `int` does not match `bool`
//│
//│ (int) ---> (?a) <--- (?b) ---> (bool)
//│ (int) ---> (?b) <--- (?a) ---> (bool)
//│
//│ ◉ (int) comes from
//│ │ - l.2 , if true then x else 5)
//│ │ ^
//│ │ - l.2 , if true then x else 5)
//│ │ ^^^^^^^^^^^^^^^^^^^^^
//│ ▼
//│ ◉ (?a) is assumed for
//│ ◉ (?b) is assumed for
//│ ▲ - l.2 , if true then x else 5)
//│ │ ^^^^^^^^^^^^^^^^^^^^^
//│ │ - l.2 , if true then x else 5)
//│ │ ^
//│ │ - l.1 let g x = ( not x
//│ │ ^
//│ │
//│ ◉ (?b) is assumed for
//│ ◉ (?a) is assumed for
//│ │ - l.1 let g x = ( not x
//│ │ ^
//│ │ - l.1 let g x = ( not x
Expand Down
10 changes: 5 additions & 5 deletions shared/src/test/diff/ocaml/SurveyHard2.mls
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,27 @@ let bigAdd l1 l2 =
//│ ^^^^^^^
//│ [ERROR] Type `int` does not match `_ * _`
//│
//│ (int) <--- (?a) ~~~~ (?b) ---> (_ * _)
//│ (int) <--- (?b) ~~~~ (?a) ---> (_ * _)
//│
//│ ◉ (int) comes from
//│ ▲ - lib. let (+): int -> int -> int
//│ │ ^^^
//│ │ - l.11 let f a x = (a + x) mod 10 in
//│ │ ^
//│ │
//│ ◉ (?a) is assumed for
//│ ◉ (?b) is assumed for
//│ - l.11 let f a x = (a + x) mod 10 in
//│ ^
//│ ◉ (?a -> _ -> int) comes from
//│ ◉ (?b -> _ -> int) comes from
//│ │ - l.11 let f a x = (a + x) mod 10 in
//│ │ ^^^^^^^^^^^^^^^^^^^^
//│ │ - l.14 let (_,res) = List.fold_left f base args in res in
//│ │ ^
//│ ▼
//│ ◉ (?b -> _ -> ?b) comes from
//│ ◉ (?a -> _ -> ?a) comes from
//│ - lib. let List.fold_left : ('a -> 'b -> 'a) -> 'a -> 'b list -> 'a
//│ ^^^^^^^^^^^^^^
//│ ◉ (?b) is assumed for
//│ ◉ (?a) is assumed for
//│ │ - l.14 let (_,res) = List.fold_left f base args in res in
//│ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^
//│ ▼
Expand Down

0 comments on commit 92b2566

Please sign in to comment.