mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-18 02:54:52 +00:00
17
tests/arc/tkeys_lent.nim
Normal file
17
tests/arc/tkeys_lent.nim
Normal file
@@ -0,0 +1,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()
|
||||
@@ -1,5 +1,6 @@
|
||||
discard """
|
||||
output: "pcDir\npcFile\npcLinkToDir\npcLinkToFile\n"
|
||||
joinable: false
|
||||
"""
|
||||
|
||||
import os, strutils
|
||||
|
||||
@@ -22,6 +22,7 @@ __really_obscure_dir_name/test
|
||||
Raises
|
||||
Raises
|
||||
'''
|
||||
joinable: false
|
||||
"""
|
||||
# test os path creation, iteration, and deletion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user