Skip to content

Commit eeeb970

Browse files
authored
adds default template for set[T] (#1205)
It is required to compile nifreader with Nimony.
1 parent 04f5c91 commit eeeb970

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/std/system/defaults.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ proc default*[T: tuple](x: typedesc[T]): T {.magic: DefaultTup.}
2828
proc default*[I: Ordinal; T: HasDefault](x: typedesc[array[I, T]]): array[I, T] {.inline, noinit, nodestroy.} =
2929
for i in low(array[I, T]) .. high(array[I, T]):
3030
result[i] = default(T)
31+
32+
template default*[T](x: typedesc[set[T]]): set[T] = {}

0 commit comments

Comments
 (0)