Skip to content

Commit 181e8f6

Browse files
Add extra test case for outcome printing of function parameter types (rescript-lang#460)
1 parent 13189d2 commit 181e8f6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,4 +493,5 @@ and ASet: {
493493
}
494494
type emptyObject = {.}
495495
let f: (~x: 'a=?, ~y: 'b) => option<'a>
496-
type call = CleanStart
496+
type call = CleanStart
497+
let f: (~a: int=?) => int

syntax/tests/oprint/oprint.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,3 +338,5 @@ type emptyObject = {.}
338338
let f = (~x=?, ~y as _) => x
339339

340340
type call = CleanStart
341+
342+
let f = (~a=1) => 1

0 commit comments

Comments
 (0)