summary refs log tree commit diff stats
path: root/tests/arc/t19862.nim
blob: 6d3f57692631e606d0201727fe20c90c98f93ed1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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