Fix type of file-position

Closes issue #297
This commit is contained in:
Asumu Takikawa 2016-01-17 15:58:37 -05:00
parent 838431c176
commit bad5a35291
2 changed files with 3 additions and 1 deletions

View File

@ -1762,7 +1762,7 @@
[file-stream-buffer-mode (cl-> [(-Port) (one-of/c 'none 'line 'block #f)]
[(-Port (one-of/c 'none 'line 'block)) -Void])]
[file-position (cl-> [(-Port) -Nat]
[(-Port -Integer) -Void])]
[(-Port (Un -Integer (-val eof))) -Void])]
[file-position* (-> -Port (Un -Nat (-val #f)))]
;; Section 13.1.4

View File

@ -31,6 +31,8 @@
(read my-output-reader)
(get-output-bytes my-error-port)
(file-position my-input eof)
(close-input-port my-input)
(close-input-port my-output-reader)
(close-output-port my-output)