ref: 6d31b85ba1113ff9752849a39684e1b40fffa50a
parent: 48434f5600e0d0096226462e4fe1e55270e1eb0d
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Aug 21 07:17:00 EDT 2017
The indexes with should be numbers as well as ints
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1638,7 +1638,9 @@
htput(seqbase, t, b);
unify(n, type(args[0]), t);
constrain(n, type(args[1]), traittab[Tcint]);
+ constrain(n, type(args[1]), traittab[Tcnum]);
constrain(n, type(args[2]), traittab[Tcint]);
+ constrain(n, type(args[2]), traittab[Tcnum]);
settype(n, mktyslice(n->loc, b));
break;