-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(test): clean up all deprecations and most warnings (#801)
- Loading branch information
1 parent
a09fb39
commit 9597451
Showing
97 changed files
with
1,134 additions
and
1,160 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
type t = A of (t -> int) | ||
|
||
let g = fun x -> | ||
match x with | ||
let g = fun x -> | ||
match x with | ||
| A v -> v x | ||
|
||
let loop = g (A g ) | ||
let loop = g (A g ) | ||
|
||
let non_terminate = (fun x -> | ||
match x with | ||
let non_terminate = (fun x -> | ||
match x with | ||
| A v -> v x) (A g) | ||
|
||
type t0 = { xx : t0 } | ||
type[@ocaml.warning "-69"] t0 = { xx : t0 } | ||
(* [@@unboxed]*) | ||
|
||
let rec xx = { xx } | ||
|
||
type t1 = | ||
type[@ocaml.warning "-34-37"] t1 = | ||
| A of t1 array | ||
|
||
|
||
|
||
type t2 = | ||
|
||
type[@ocaml.warning "-34-37"] t2 = | ||
| A2 of t2 array [@@unboxed] | ||
|
||
(* let rec h = A [|h|] | ||
(* let rec h = A [|h|] | ||
let rec h1 = A [|h1|] // could be relaxed | ||
let rec h2 = A2 [|h2|] | ||
let rec h2 = A2 [|h2|] | ||
;; Js.log (h,h2) *) | ||
(** If we inline g's definition -- it will be the same, inline uncarefully | ||
(** If we inline g's definition -- it will be the same, inline uncarefully | ||
(inline the inlined result) | ||
will make it non-terminating | ||
*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
type t | ||
type t | ||
|
||
type arrow_type = int -> int | ||
|
||
type 'a poly_type = 'a | ||
type 'a poly_abstract_type | ||
open Mt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.