Files
Nim/tests/arc/t19862.nim
ringabout 5a71c36d25 fixes strictdefs warnings continue (#24520)
(cherry picked from commit d2d810585c)
2025-01-14 13:23:18 +01:00

16 lines
268 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 = default(NewString)
let w = newWideCString("test")
doAssert len(w) == 4