I think #90 from @jeffreyrosenbluth introduced a bug. At least, I think it was that commit.
Prior to this commit (ie. using #1e609fb), you can do something like the following:
Now, I get the following:
Poly> 2 + 3
Cannot unify types:
Int
with
Int -> a
Weirdly, it works for the * operator, but fails only for + and -:
I suspect there's something weird going on in the parser because:
Poly> 2 + x
"<stdin>" (line 1, column 5):
unexpected "x"
expecting digit
Poly> 2 * x
4 : Int
I think #90 from @jeffreyrosenbluth introduced a bug. At least, I think it was that commit.
Prior to this commit (ie. using #1e609fb), you can do something like the following:
Now, I get the following:
Weirdly, it works for the
*operator, but fails only for+and-:I suspect there's something weird going on in the parser because: