Make type of make-vector more precise.
Before that, ((inst make-vector Natural) 10) would return a (Vectorof Integer) which is bad. Thanks to Alexander Knauth for the suggestion! original commit: aab724de351556b7def913c67797077df719fa54
This commit is contained in:
parent
1649aab8e3
commit
d6a5634246
|
@ -258,7 +258,7 @@
|
|||
[unsafe-vector-set! (-poly (a) (-> (-vec a) index-type a -Void))]
|
||||
[unsafe-vector*-set! (-poly (a) (-> (-vec a) index-type a -Void))]
|
||||
[vector-copy! (-poly (a) ((-vec a) index-type (-vec a) [index-type index-type] . ->opt . -Void))]
|
||||
[make-vector (-poly (a) (cl-> [(index-type) (-vec (Un -Integer a))]
|
||||
[make-vector (-poly (a) (cl-> [(index-type) (-vec (Un -Zero a))]
|
||||
[(index-type a) (-vec a)]))]
|
||||
|
||||
;; flvector ops
|
||||
|
|
Loading…
Reference in New Issue
Block a user