mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-05 21:44:46 +00:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user