Skip to content

Commit a8b2b92

Browse files
committed
Fix warnings in tests
1 parent 9ad1fcc commit a8b2b92

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

compiler/tests-jsoo/lib-effects/assume_no_perform.ml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ module type TREE = sig
66
type 'a t
77
(** The type of tree. *)
88

9-
val leaf : 'a t
10-
(** A tree with only a leaf. *)
11-
12-
val node : 'a t -> 'a -> 'a t -> 'a t
13-
(** [node l x r] constructs a new tree with a new node [x] as the value, with
14-
[l] and [r] being the left and right sub-trees. *)
15-
169
val deep : int -> int t
1710
(** [deep n] constructs a tree of depth n, in linear time, where every node at
1811
level [l] has value [l]. *)
@@ -35,10 +28,6 @@ module Tree : TREE = struct
3528
| Leaf
3629
| Node of 'a t * 'a * 'a t
3730

38-
let leaf = Leaf
39-
40-
let node l x r = Node (l, x, r)
41-
4231
let rec deep = function
4332
| 0 -> Leaf
4433
| n ->
@@ -120,7 +109,7 @@ let benchmark f n =
120109

121110
(* Main follows *)
122111

123-
type _ Effect.t += Dummy : unit t
112+
type _ Effect.t += Dummy : unit t [@@warning "-38"]
124113

125114
let () =
126115
try_with

compiler/tests-jsoo/lib-effects/assume_no_perform_nested_handler.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
open Printf
21
open Effect
32
open Effect.Deep
43

compiler/tests-jsoo/lib-effects/assume_no_perform_unhandled.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
open Printf
21
open Effect
32
open Effect.Deep
43

0 commit comments

Comments
 (0)