summary refs log tree commit diff stats
path: root/tests/varstmt/tlet.nim
blob: 9c2d9706dde0f4e57443c070bc1fb06be9f0140b (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()