fixes #11254
This commit is contained in:
parent
c9c28bf85e
commit
289b5e9ef9
4 changed files with 26 additions and 12 deletions
|
|
@ -52,5 +52,11 @@ type
|
|||
x*: int
|
||||
var t: MyType
|
||||
|
||||
# bug #11254
|
||||
proc test(p: owned proc()) =
|
||||
let x = (proc())p
|
||||
|
||||
test(proc() = discard)
|
||||
|
||||
let (a, d) = allocCounters()
|
||||
discard cprintf("%ld new: %ld\n", a - unpairedEnvAllocs() - d, allocs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue