[bugfix] nimpretty: fixes #11468
This commit is contained in:
parent
b70295c768
commit
af39f26a3a
5 changed files with 39 additions and 19 deletions
|
|
@ -409,3 +409,11 @@ type
|
|||
ccFastCall, # fastcall (pass parameters in registers)
|
||||
ccClosure, # proc has a closure
|
||||
ccNoConvention # needed for generating proper C procs sometimes
|
||||
|
||||
|
||||
proc isValid1*[A](s: HashSet[A]): bool {.deprecated:
|
||||
"Deprecated since v0.20; sets are initialized by default".} =
|
||||
## Returns `true` if the set has been initialized (with `initHashSet proc
|
||||
## <#initHashSet,int>`_ or `init proc <#init,HashSet[A],int>`_).
|
||||
result = s.data.len > 0
|
||||
# bug #11468
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue