* fixes #3748 * fix the regression * don't use the new allocator for the SSL wrapper * fixes regression
This commit is contained in:
parent
b793ca7394
commit
07b645342a
4 changed files with 24 additions and 6 deletions
|
|
@ -75,3 +75,17 @@ proc add*[TKey, TData](root: var PElement[TKey, TData], key: TKey, data: TData)
|
|||
var tree = PElement[int, int](kind: ElementKind.inner, key: 0, left: nil, right: nil)
|
||||
let result = add(tree, 1, 1)
|
||||
echo(result)
|
||||
|
||||
# bug #3748
|
||||
type
|
||||
Foo = object
|
||||
bar: int
|
||||
|
||||
proc bar(cur: Foo, val: int, s:seq[string]) =
|
||||
discard cur.bar
|
||||
|
||||
proc does_fail(): Foo =
|
||||
let a = @["a"]
|
||||
result.bar(5, a)
|
||||
|
||||
doAssert does_fail().bar == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue