t19862.nim 257 B

12345678910111213141516
  1. discard """
  2. matrix: "--gc:refc; --gc:arc"
  3. """
  4. import std/widestrs
  5. # bug #19862
  6. type NewString = object
  7. proc len(s: NewString): int = 10
  8. converter toNewString(x: WideCStringObj): NewString = discard
  9. let w = newWideCString("test")
  10. doAssert len(w) == 4