More workarounds for #5098
This commit is contained in:
parent
57c4e78bcc
commit
54cbe0b743
3 changed files with 11 additions and 3 deletions
|
|
@ -261,7 +261,9 @@ template doWhile(a, b) =
|
|||
b
|
||||
if not a: break
|
||||
|
||||
proc default[T](t: typedesc[T]): T {.inline.} = discard
|
||||
template default[T](t: typedesc[T]): T =
|
||||
var v: T
|
||||
v
|
||||
|
||||
proc excl*[A](s: var HashSet[A], key: A) =
|
||||
## Excludes `key` from the set `s`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue