summary refs log blame commit diff stats
path: root/tests/varstmt/tlet.nim
blob: 138f3443361221b9633b5f8bff4d0a9f0d15a7b0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                           
                           





                            
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()