* fix #14243 Co-authored-by: cooldome <ariabushenko@bk.ru>
This commit is contained in:
parent
83435fe696
commit
5fa7d374c4
2 changed files with 24 additions and 6 deletions
|
|
@ -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)")
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue