cx
cx copied to clipboard
for loop using boolean value is not compiling
@asahi3g commented on Mar 12
To Reproduce
package main
func main()() {
var b bool = true
for b {
printf("true\n")
}
}
Expected behavior Test should compile
Screenshots
tests/pending_4.cx:6: syntax error: unexpected LPAREN
Desktop:
- OS: Linux
- CX Version : 0.6.1, d8775bf
@arfan499, test this. If issue still exists, then add to unit tests.
If issue is fixed, notify me and close this ticket.