Files
Nim/tests/arc/t19862.nim
metagn 0b1650576c move widestrs out of system (#20462)
* move widestrs out of system

* fix osproc
2022-10-01 22:35:09 +02:00

16 lines
257 B
Nim

discard """
matrix: "--gc:refc; --gc:arc"
"""
import std/widestrs
# bug #19862
type NewString = object
proc len(s: NewString): int = 10
converter toNewString(x: WideCStringObj): NewString = discard
let w = newWideCString("test")
doAssert len(w) == 4