TR: Changed type of port->list
This commit is contained in:
parent
5bf4b1c930
commit
c7f9a80de8
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
|
;; scheme/port
|
||||||
[port->lines (cl->* ([-Input-Port] . ->opt . (-lst -String)))]
|
[port->lines (cl->* ([-Input-Port] . ->opt . (-lst -String)))]
|
||||||
[port->bytes-lines (cl->* ([-Input-Port] . ->opt . (-lst -Bytes)))]
|
[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->bytes (->opt [-Input-Port] -Bytes)]
|
||||||
[port->string (->opt [-Input-Port] -String)]
|
[port->string (->opt [-Input-Port] -String)]
|
||||||
[with-output-to-string
|
[with-output-to-string
|
||||||
|
|
Loading…
Reference in New Issue
Block a user