parent
488e9c2991
commit
bdfee32dc8
1 changed files with 15 additions and 0 deletions
15
tests/stdlib/tstrtabs2.nim
Normal file
15
tests/stdlib/tstrtabs2.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
discard """
|
||||||
|
targets: "c cpp js"
|
||||||
|
"""
|
||||||
|
|
||||||
|
import std/strtabs
|
||||||
|
|
||||||
|
macro m =
|
||||||
|
var t = {"name": "John"}.newStringTable
|
||||||
|
doAssert t["name"] == "John"
|
||||||
|
|
||||||
|
block:
|
||||||
|
var t = {"name": "John"}.newStringTable
|
||||||
|
doAssert t["name"] == "John"
|
||||||
|
|
||||||
|
m()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue