summary refs log tree commit diff stats
path: root/tests/arc/tkeys_lent.nim
blob: 2c92350b116e5effcd6b0871b637eaa3acddc14a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
discard """
  output: '''{"string": 2}'''
  cmd: "nim c --gc:orc $file"
"""

import tables

proc use(x: int) = echo x

proc main =
  var tab = {"string": 1}.toTable
  for keyAAA in tab.keys():
    template alias(): untyped = tab[keyAAA]
    alias() = 2
  echo tab

main()