* fixes #3748

* fix the regression

* don't use the new allocator for the SSL wrapper

* fixes regression

(cherry picked from commit 07b645342a)
This commit is contained in:
Andreas Rumpf
2022-10-14 12:00:38 +02:00
committed by narimiran
parent 5392dbc10e
commit 42ff3aa75a
3 changed files with 19 additions and 4 deletions

View File

@@ -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