Skip to content

Commit d2c1ac7

Browse files
committed
Add type annotations to fix tests.
Needed since change to parallel threads.
1 parent 150f172 commit d2c1ac7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

typed-racket-test/succeed/events-with-async-channel.rkt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
(when l ; still something to read
2323
(intercept l) ; interceptor gets the whole vector
2424
(clear-events))))
25-
(let loop ()
25+
(let: loop : Void ()
2626
(let ([l : (U Log-Receiver-Sync-Result 'stop)
2727
(sync receiver stop-chan)])
2828
(cond [(eq? l 'stop)
@@ -103,4 +103,3 @@
103103
(check-true (andmap (lambda: ([l : Log-Receiver-Sync-Result])
104104
(eq? (vector-ref l 0) 'warning))
105105
out))))
106-

typed-racket-test/succeed/events.rkt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
(when l ; still something to read
2222
(intercept l) ; interceptor gets the whole vector
2323
(clear-events))))
24-
(let loop ()
24+
(let: loop : Void ()
2525
(let: ([l : (U Log-Receiver-Sync-Result 'stop)
2626
(sync receiver stop-chan)])
2727
(cond [(eq? l 'stop)
@@ -102,4 +102,3 @@
102102
(check-true (andmap (lambda: ([l : Log-Receiver-Sync-Result])
103103
(eq? (vector-ref l 0) 'warning))
104104
out))))
105-

0 commit comments

Comments
 (0)