Skip to content

Commit 8c6328f

Browse files
committed
Test for ts for-of support
Closes immutable-js#1183
1 parent 55d815b commit 8c6328f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

type-definitions/ts-tests/list.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,3 +408,10 @@ import { List } from '../../';
408408
// $ExpectType List<number>
409409
List<number>().asImmutable();
410410
}
411+
412+
{ // # for of loops
413+
const list = List([ 1, 2, 3, 4 ]);
414+
for (const val of list) {
415+
const v: number = val;
416+
}
417+
}

0 commit comments

Comments
 (0)