fixes #6049 add mixin release, acquire to withLock (#6113)

This commit is contained in:
andri lim 2017-07-16 21:54:09 +07:00 • committed by Andreas Rumpf
commit 2ecdf582a8
3 changed files with 22 additions and 0 deletions

10
tests/stdlib/tlocks.nim Normal file
View file

@ -0,0 +1,10 @@
discard """
output: '''3'''
cmd: "nim $target --threads:on $options $file"
"""
#bug #6049
import uselocks
var m = createMyType[int]()
echo $m.use()