tstrtabs2.nim 250 B

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