t8967.nim 202 B

123456789101112131415
  1. discard """
  2. targets: "c cpp"
  3. """
  4. import marshal
  5. template main() =
  6. let orig: set[char] = {'A'..'Z'}
  7. let m = $$orig
  8. let old = to[set[char]](m)
  9. doAssert orig - old == {}
  10. static: main()
  11. main()