Closed GoogleCodeExporter closed 8 years ago
Original comment by aggraef@gmail.com
on 21 Aug 2012 at 2:36
Yes, I forgot to catch a possible error condition in the parser there, this
should give you a "misplaced type tag" error. I'm currently testing a fix,
thanks for reporting.
Original comment by aggraef@gmail.com
on 22 Aug 2012 at 6:01
This issue was closed by revision 1552b29c7acb.
Original comment by aggraef@gmail.com
on 22 Aug 2012 at 6:12
Ok, this gives you a proper error message now:
> {x::int | x=1..10};
<stdin>, line 1: error in expression (misplaced type tag 'int')
Note that if you really wanted to place a type tag on x, it must be placed on
the lhs of the binding clause:
> {x | x::int=1..10};
{1,2,3,4,5,6,7,8,9,10}
Original comment by aggraef@gmail.com
on 22 Aug 2012 at 6:15
Original issue reported on code.google.com by
nil...@gmail.com
on 21 Aug 2012 at 11:53