Skip to content

Commit 86c79ae

Browse files
committed
add missing ^boolean type hints to iter-reduce
1 parent 4e48a34 commit 86c79ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,7 +2379,7 @@ reduces them without incurring seq initialization"
23792379
(if (.hasNext iter)
23802380
(let [init (.next iter)]
23812381
(loop [acc init]
2382-
(if (.hasNext iter)
2382+
(if ^boolean (.hasNext iter)
23832383
(let [nacc (f acc (.next iter))]
23842384
(if (reduced? nacc)
23852385
@nacc
@@ -2389,7 +2389,7 @@ reduces them without incurring seq initialization"
23892389
([coll f init]
23902390
(let [iter (-iterator coll)]
23912391
(loop [acc init]
2392-
(if (.hasNext iter)
2392+
(if ^boolean (.hasNext iter)
23932393
(let [nacc (f acc (.next iter))]
23942394
(if (reduced? nacc)
23952395
@nacc

0 commit comments

Comments
 (0)