cascade icon indicating copy to clipboard operation
cascade copied to clipboard

Strange () in output

Open gavr123456789 opened this issue 3 years ago • 0 comments

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

gavr123456789 avatar May 17 '21 23:05 gavr123456789