parent
7bfb9f0002
commit
c7b4639460
3 changed files with 12 additions and 3 deletions
|
|
@ -9,3 +9,7 @@ proc createMyType*[T]: MyType[T] =
|
|||
proc use* (m: var MyType): int =
|
||||
withLock m.lock:
|
||||
result = 3
|
||||
|
||||
block:
|
||||
var l: Lock
|
||||
doAssert $l == "()"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue