Files
Nim/tests/arc/t19862.nim
flywind 1972005439 fix #19862; make widestrs consistent between refc and orc (#19874) [backport]
fix #19862; make widestrs consistent in refc and orc
2022-06-09 16:51:17 +02:00

14 lines
236 B
Nim

discard """
matrix: "--gc:refc; --gc:arc"
"""
# 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