tstrtabs2.nim 228 B

12345678910111213141516
  1. discard """
  2. targets: "c cpp js"
  3. """
  4. import std/strtabs
  5. macro m =
  6. var t = {"name": "John"}.newStringTable
  7. doAssert t["name"] == "John"
  8. block:
  9. var t = {"name": "John"}.newStringTable
  10. doAssert t["name"] == "John"
  11. m()