cx icon indicating copy to clipboard operation
cx copied to clipboard

for loop using boolean value is not compiling

Open vidya88 opened this issue 5 years ago • 1 comments

@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

vidya88 avatar Sep 24 '19 05:09 vidya88

@arfan499, test this. If issue still exists, then add to unit tests.

If issue is fixed, notify me and close this ticket.

SkycoinSynth avatar Feb 04 '21 16:02 SkycoinSynth