mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
16 lines
257 B
Nim
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
|