File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed
main/clojure/clojure/core
test/clojure/clojure/core Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -277,8 +277,6 @@ to catch and handle."
277
277
" returns derefable [val port] if immediate, nil if enqueued"
278
278
[fret ports opts]
279
279
(assert (pos? (count ports)) " alts must have at least one channel operation" )
280
- (doseq [port ports :when (vector? port)]
281
- (assert (not (nil? (nth port 1 ))) " alts can't put nil on channel" ))
282
280
(let [flag (alt-flag )
283
281
ports (vec ports) ; ; ensure vector for indexed nth
284
282
n (count ports)
Original file line number Diff line number Diff line change 465
465
:ok
466
466
(catch AssertionError e
467
467
:ko ))))))
468
-
469
- (deftest test-alts-put-nil-invalid
470
- (is
471
- (thrown? AssertionError
472
- (let [c1 (a/chan )
473
- c2 (a/chan )]
474
- (a/alts!! [c1 [c2 nil ]])))))
You can’t perform that action at this time.
0 commit comments