Skip to content

Commit 244d5d1

Browse files
committed
Example where in uncurried by default nested types are formatted incorrectly.
1 parent edbe4ef commit 244d5d1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

res_syntax/tests/printer/expr/UncurriedByDefault.res

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ type upp = (. ()) => (. ()) => int
3131
type uu2 = (. unit, unit) => unit
3232
type up2 = (. (), ()) => unit
3333

34+
type cnested = (string => unit) => unit
35+
type unested = (. (. string) => unit) => unit
36+
3437
let pipe = a->foo(. b, c)
3538

3639
@@uncurried
@@ -69,4 +72,7 @@ type upp = () => () => int
6972
type uu2 = (unit, unit) => unit
7073
type up2 = ((), ()) => unit
7174

75+
type cnested = (. (. string) => unit) => unit
76+
type unested = (string => unit) => unit
77+
7278
let pipe = a->foo(b, c)

res_syntax/tests/printer/expr/expected/UncurriedByDefault.res.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ type upp = (. ()) => (. ()) => int
3131
type uu2 = (. unit, unit) => unit
3232
type up2 = (. unit, unit) => unit
3333

34+
type cnested = (string => unit) => unit
35+
type unested = (. (. string) => unit) => unit
36+
3437
let pipe = a->foo(. b, c)
3538

3639
@@uncurried
@@ -69,4 +72,7 @@ type upp = () => () => int
6972
type uu2 = (unit, unit) => unit
7073
type up2 = (unit, unit) => unit
7174

75+
type cnested = (. (. string) => unit) => unit
76+
type unested = string => unit => unit
77+
7278
let pipe = a->foo(b, c)

0 commit comments

Comments
 (0)