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

Strange () in output #4

Open
gavr123456789 opened this issue May 17, 2021 · 0 comments
Open

Strange () in output #4

gavr123456789 opened this issue May 17, 2021 · 0 comments
Labels

Comments

@gavr123456789
Copy link

import cascade

type
  Sas = object

func qwe(sas: Sas) = debugEcho "qwe"
func rty(sas: Sas) = debugEcho "rty"

let bar = cascade Sas():
  qwe()
  if 1 == 1:
    rty()
    echo "sas"
    echo "qwe"
    debugEcho "zxc"
    var x = 1
    echo x + 654

Output:

qwe
rty
()sas
()qwe
()zxc
()655
@haltcase haltcase added the bug label May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants