diff options
Diffstat (limited to 'tests/arc/tarcmisc.nim')
-rw-r--r-- | tests/arc/tarcmisc.nim | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/arc/tarcmisc.nim b/tests/arc/tarcmisc.nim index 953e2f3a7..79c947e82 100644 --- a/tests/arc/tarcmisc.nim +++ b/tests/arc/tarcmisc.nim @@ -104,4 +104,18 @@ proc re(x: static[string]): static MyType = proc match(inp: string, rg: static MyType) = doAssert rg.a.len == 0 -match("ac", re"a(b|c)") \ No newline at end of file +match("ac", re"a(b|c)") + +#------------------------------------------------------------------------------ +# issue #14243 + +type + Game* = ref object + +proc free*(game: Game) = + let a = 5 + +proc newGame*(): Game = + new(result, free) + +var game*: Game \ No newline at end of file |