Skip to content

Commit 3272ce4

Browse files
Fix 1 occurrence of case-lambda-with-single-case-to-lambda
This `case-lambda` form only has one case. Use a regular lambda instead.
1 parent 8dbc393 commit 3272ce4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

typed-racket-lib/typed-racket/typed-reader.rkt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,12 @@
7878
1))))))
7979

8080
(define parse-id-type
81-
(case-lambda
82-
[(ch port src line col pos)
83-
;; `read-syntax' mode
84-
(datum->syntax
85-
#f
86-
(parse port
87-
(lambda () (read-syntax src port ))
88-
src)
89-
(let-values ([(l c p) (port-next-location port)])
90-
(list src line col pos (and pos (- p pos)))))]))
81+
(λ (ch port src line col pos)
82+
;; `read-syntax' mode
83+
(datum->syntax #f
84+
(parse port (lambda () (read-syntax src port)) src)
85+
(let-values ([(l c p) (port-next-location port)])
86+
(list src line col pos (and pos (- p pos)))))))
9187

9288
(define (readtable)
9389
; don't install the reader macro if a dispatch macro on the open brace has already been installed

0 commit comments

Comments
 (0)