TR: Changed type of port->list
original commit: c7f9a80de88d8ce0a2743ac5baa9f4b8c30fc29b
This commit is contained in:
parent
2b2d52e646
commit
95a11759c1
5
collects/tests/typed-scheme/fail/port-to-list.rkt
Normal file
5
collects/tests/typed-scheme/fail/port-to-list.rkt
Normal file
|
@ -0,0 +1,5 @@
|
|||
#lang typed/racket
|
||||
(car (car
|
||||
(parameterize ((current-input-port (open-input-string "2")))
|
||||
((inst port->list (List Number))))))
|
||||
|
|
@ -902,7 +902,10 @@
|
|||
;; scheme/port
|
||||
[port->lines (cl->* ([-Input-Port] . ->opt . (-lst -String)))]
|
||||
[port->bytes-lines (cl->* ([-Input-Port] . ->opt . (-lst -Bytes)))]
|
||||
[port->list (-poly (a) (->opt [(-> -Input-Port a) -Input-Port] (-lst a)))]
|
||||
[port->list
|
||||
(-poly (a) (cl->*
|
||||
(-> (-lst Univ))
|
||||
(->opt (-> -Input-Port a) [-Input-Port] (-lst a))))]
|
||||
[port->bytes (->opt [-Input-Port] -Bytes)]
|
||||
[port->string (->opt [-Input-Port] -String)]
|
||||
[with-output-to-string
|
||||
|
|
Loading…
Reference in New Issue
Block a user