Switched indexing to integers in the typechecker's special cases for
heterogenous vectors and unsafe struct operations.
This commit is contained in:
parent
7d1040283e
commit
3c9e7e34db
|
@ -472,7 +472,7 @@
|
||||||
[(tc-result1: (Value: (? number? i))) i]
|
[(tc-result1: (Value: (? number? i))) i]
|
||||||
[_ #f]))])
|
[_ #f]))])
|
||||||
(cond [(not ival)
|
(cond [(not ival)
|
||||||
(check-below e-t -Nat)
|
(check-below e-t -Integer)
|
||||||
(if expected
|
(if expected
|
||||||
(check-below (ret (apply Un flds)) expected)
|
(check-below (ret (apply Un flds)) expected)
|
||||||
(ret (apply Un flds)))]
|
(ret (apply Un flds)))]
|
||||||
|
@ -529,7 +529,7 @@
|
||||||
[(tc-result1: (Value: (? number? i))) i]
|
[(tc-result1: (Value: (? number? i))) i]
|
||||||
[_ #f]))])
|
[_ #f]))])
|
||||||
(cond [(not ival)
|
(cond [(not ival)
|
||||||
(check-below e-t -Nat)
|
(check-below e-t -Integer)
|
||||||
(if expected
|
(if expected
|
||||||
(check-below (ret (apply Un es)) expected)
|
(check-below (ret (apply Un es)) expected)
|
||||||
(ret (apply Un es)))]
|
(ret (apply Un es)))]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user