Skip to content

Commit 0d781ff

Browse files
authored
Fix syntax tests. (#6298)
1 parent 4a3dff4 commit 0d781ff

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

jscomp/syntax/testrunner/res_test.ml

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ module OutcomePrinterTests = struct
6161
let signatureToOutcome structure =
6262
Lazy.force Res_outcome_printer.setup;
6363

64+
Clflags.include_dirs :=
65+
Filename.concat "lib" "ocaml" :: !Clflags.include_dirs;
6466
Res_compmisc.init_path ();
6567
Clflags.nopervasives := true;
6668
let env = Res_compmisc.initial_env () in

jscomp/syntax/tests/oprint/expected/oprint.resi.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ type \"let" = int
171171
type \"type" = [#"Point🗿"(\"let", float)]
172172
type t23 = [#1 | #"10space" | #123]
173173
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
177177
type obj1<'a> = option<{"a": int}>
178178
type obj2 = {"a": int}
179179
type obj3 = {"a": int}
@@ -217,7 +217,7 @@ type permissions = [#644 | #777]
217217
type numericPolyVarWithPayload = [#1(string) | #2(int, string)]
218218
let numericPolyVarMatch: [> #1(string) | #2(int, string)]
219219
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)
221221
type picture = string
222222
module type DEVICE = {
223223
let draw: picture => unit

0 commit comments

Comments
 (0)