* fix #15941

* add testcase

* update
This commit is contained in:
flywind 2020-11-13 15:11:00 +08:00 • committed by GitHub
commit 492e9afa4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 4 deletions

View file

@ -0,0 +1,17 @@
import sharedlist
var
list: SharedList[int]
count: int
init(list)
for i in 1 .. 250:
list.add i
for i in list:
inc count
doAssert count == 250
deinitSharedList(list)