cx icon indicating copy to clipboard operation
cx copied to clipboard

Compiler Error: Can't use infinite loop

Open vidya88 opened this issue 5 years ago • 1 comments

@canhdoan commented on Jul 26

Describe the bug Can't execute an infinite loop with true value as the link

To Reproduce See the test source

package main

func main() {
        for true {
                printf("looping!!!")
        }
}

Desktop (please complete the following information):

  • OS: Kali Linux
  • CX Version 0.7.0

vidya88 avatar Sep 23 '19 08:09 vidya88

@arfan499 Can you create unit test for this.

Put a break condition in "for true""

for true { if i > 3: break }

SkycoinSynth avatar Feb 04 '21 10:02 SkycoinSynth