File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ let dataDir = "jscomp/syntax/tests"
4
4
5
5
(* test printing of .res file*)
6
6
let () =
7
+ Config. uncurried := Legacy ;
7
8
let filename = Filename. concat dataDir " api/resSyntax.res" in
8
9
let prettySource = Res_multi_printer. print `res ~input: filename in
9
10
assert (
@@ -61,6 +62,8 @@ module OutcomePrinterTests = struct
61
62
let signatureToOutcome structure =
62
63
Lazy. force Res_outcome_printer. setup;
63
64
65
+ Clflags. include_dirs :=
66
+ Filename. concat " lib" " ocaml" :: ! Clflags. include_dirs;
64
67
Res_compmisc. init_path () ;
65
68
Clflags. nopervasives := true ;
66
69
let env = Res_compmisc. initial_env () in
@@ -84,7 +87,7 @@ module OutcomePrinterTests = struct
84
87
Typedecl. report_error Format. str_formatter err;
85
88
prerr_string (Format. flush_str_formatter () );
86
89
exit 1
87
- | e ->
90
+ | e when false ->
88
91
prerr_string
89
92
(" Unknown error while trying to print outcome tree.\n "
90
93
^ " We don't display all the outcome type errors; try adding the new \
Original file line number Diff line number Diff line change @@ -171,9 +171,9 @@ type \"let" = int
171
171
type \"type" = [#"Point🗿"(\"let", float)]
172
172
type t23 = [#1 | #"10space" | #123]
173
173
type exoticUser = {\"let": string, \"type": float}
174
- type arity1a = (. unit) => int
175
- type arity1b = (. int) => int
176
- type arity2 = (. int, int) => int
174
+ type arity1a = unit => int
175
+ type arity1b = int => int
176
+ type arity2 = (int, int) => int
177
177
type obj1<'a> = option<{"a": int}>
178
178
type obj2 = {"a": int}
179
179
type obj3 = {"a": int}
@@ -217,7 +217,7 @@ type permissions = [#644 | #777]
217
217
type numericPolyVarWithPayload = [#1(string) | #2(int, string)]
218
218
let numericPolyVarMatch: [> #1(string) | #2(int, string)]
219
219
let sort: (module(Set.S with type elt = 'a), list<'a>) => list<'a>
220
- let make_set: (( 'a, 'a) => int) => module(Set.S with type elt = 'a)
220
+ let make_set: ('a, 'a) => int => module(Set.S with type elt = 'a)
221
221
type picture = string
222
222
module type DEVICE = {
223
223
let draw: picture => unit
You can’t perform that action at this time.
0 commit comments