10000 Add flow test for #1389 (#1390) · lisongyu/immutable-js@275486e · GitHub
[go: up one dir, main page]

Skip to content

Commit 275486e

Browse files
authored
1 parent e35f5fe commit 275486e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

type-definitions/tests/immutable-flow.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,10 @@ stringToNumberOrString = Map({'a': 1}).mergeDeepWith((previous, next, key) => 1,
366366
// $ExpectError - the array [1] is not a valid argument
367367
stringToNumber = Map({'a': 1}).mergeDeepWith((previous, next, key) => 1, [1])
368368

369+
// KeyedSeq can merge into Map
370+
var stringToStringSeq: KeyedSeq<string, string> = Seq({'b': 'B'});
371+
stringToNumberOrString = Map({'a': 1}).merge(stringToStringSeq);
372+
369373
// $ExpectError
370374
stringToNumber = Map({'a': 1}).setIn([], 0)
371375
// $ExpectError

0 commit comments

Comments
 (0)
0