summary refs log blame commit diff stats
path: root/tests/varstmt/tlet.nim
blob: ba355c5d83668d0c2f95c36e0f758b94542f215b (plain) (tree)


















                                           
discard """
  output: '''Very funny, your name is name.
nameabc'''
"""

proc main =
  let name = "name"
  if name == "":
    echo("Poor soul, you lost your name?")
  elif name == "name":
    echo("Very funny, your name is name.")
  else:
    Echo("Hi, ", name, "!")
    
  let (x, y) = ("abc", name)
  echo y, x

main()