Fix type of string->number

svn: r17313

original commit: b9fd34b925d37125553464bde37e0591dfaa16f8
This commit is contained in:
Sam Tobin-Hochstadt 2009-12-15 22:03:10 +00:00
parent 53fa4bb8ce
commit 16b7190098
2 changed files with 4 additions and 1 deletions

View File

@ -759,6 +759,9 @@
(-polydots (a) ((list -Number) (a a) . ->... . -Boolean))]
[tc-e (ann (error 'foo) (values Number Number)) #:ret (ret (list -Number -Number))]
[tc-e (string->number "123")
(t:Un (-val #f) -Number)]
[tc-e #{(make-hash) :: (HashTable Number Number)}
(make-Hashtable -Number -Number)]
#;[tc-err (let: ([fact : (Number -> Number) (lambda: ([n : Number]) (if (zero? n) 1 (* n (fact (- n 1)))))])

View File

@ -290,7 +290,7 @@
[-> -Bytes -Bytes])]
[number->string (->opt N [N] -String)]
[string->number (->opt -String [N] -String)]
[string->number (->opt -String [N] (Un (-val #f) N))]
[current-milliseconds (-> -Integer)]