various bugfixes for generics; added generic sort proc
This commit is contained in:
parent
f93ca8e42a
commit
e424e13bd9
18 changed files with 392 additions and 113 deletions
11
tests/gc/gcleak.nim
Normal file
11
tests/gc/gcleak.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
type
|
||||
TTestObj = object of TObject
|
||||
x: string
|
||||
|
||||
proc MakeObj(): TTestObj =
|
||||
result.x = "Hello"
|
||||
|
||||
while true:
|
||||
var obj = MakeObj()
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue