Skip to content

Commit b68efad

Browse files
committed
Reproduce missing arity
1 parent 394848f commit b68efad

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/syntax_tests/data/parsing/grammar/expressions/arrow.res

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,7 @@ let arr = (): array<nullable<int>> => []
107107

108108
let fn = f => f;
109109
type f = int => unit;
110-
let a = fn(_ => (): f);
110+
let a = fn(_ => (): f);
111+
112+
let returnsArrayOption = (): option<array<string>> => Some(["foo"])
113+
let usesIt = returnsArrayOption()

tests/syntax_tests/data/parsing/grammar/expressions/expected/arrow.res.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,6 @@ let c [arity:1]() = ((1, 2) : ('a, 'b) d)
7777
let arr () = ([||] : int nullable array)
7878
let fn [arity:1]f = f
7979
type nonrec f = int -> unit (a:1)
80-
let a = fn (fun [arity:1]_ -> () : f)
80+
let a = fn (fun [arity:1]_ -> () : f)
81+
let returnsArrayOption () = (Some [|{js|foo|js}|] : string array option)
82+
let usesIt = returnsArrayOption ()

0 commit comments

Comments
 (0)