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."
277277 " returns derefable [val port] if immediate, nil if enqueued"
278278 [fret ports opts]
279279 (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" ))
282280 (let [flag (alt-flag )
283281 ports (vec ports) ; ; ensure vector for indexed nth
284282 n (count ports)
Original file line number Diff line number Diff line change 465465 :ok
466466 (catch AssertionError e
467467 :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