Open DavePearce opened 7 years ago
Have added the following test case which currently parses and verified, but should not:
type Point is ({&int x, int y} this)
assert "assertion failed":
forall(test.Point p):
if:
0 == *p.x
then:
0 == *p.x
The intention with WyAL is that there is no operator precedence. And yet, at this time, the following assertion is parsed:
This results in the following type error:
However, it should clear report something like
ambiguous expression encountered (braces required)
.