Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

break is broken #5

Closed
zevv opened this issue Jul 25, 2020 · 0 comments
Closed

break is broken #5

zevv opened this issue Jul 25, 2020 · 0 comments

Comments

@zevv
Copy link
Collaborator

zevv commented Jul 25, 2020

import cps 
 
type

  Cont = ref object of RootObj
    fn*: proc(c: Cont): Cont {.nimcall.}
    
    
proc test(): Cont {.cps.} = 
  
  while true:
    cps sleep()
    if true:
      break
brokenbreak.nim(10, 21) template/generic instantiation of `cps` from here                                 
brokenbreak.nim(15, 7) Error: invalid control flow: break  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant