summary refs log tree commit diff stats
path: root/tests/varstmt/tlet.nim
blob: 138f3443361221b9633b5f8bff4d0a9f0d15a7b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()