* fixes #18565
This commit is contained in:
Andreas Rumpf 2021-07-27 09:36:19 +02:00 • committed by GitHub
commit fa0209609d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 12 deletions

17
tests/arc/tkeys_lent.nim Normal file
View 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()

View file

@ -1,5 +1,6 @@
discard """
output: "pcDir\npcFile\npcLinkToDir\npcLinkToFile\n"
joinable: false
"""
import os, strutils

View file

@ -22,6 +22,7 @@ __really_obscure_dir_name/test
Raises
Raises
'''
joinable: false
"""
# test os path creation, iteration, and deletion