diff options
author | cooldome <cdome@bk.ru> | 2020-05-07 21:15:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-07 22:15:25 +0200 |
commit | 5fa7d374c4cb777372cf5b967575f228bda23c2b (patch) | |
tree | 1e40c449f26e1d750b420acdca61a2648b876d07 /tests/arc/tarcmisc.nim | |
parent | 83435fe6968884d916db79b51ca0e510e67d87c7 (diff) | |
download | Nim-5fa7d374c4cb777372cf5b967575f228bda23c2b.tar.gz |
fix #14243 (#14257)
* fix #14243 Co-authored-by: cooldome <ariabushenko@bk.ru>
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 |