Skip to content

Commit

Permalink
use type SomeSparseEnum* = (not Ordinal) and enum instead of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Feb 20, 2021
1 parent a5be8c8 commit 88b315c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pure/typetraits.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
import std/private/since
export system.`$` # for backward compatibility

type SomeSparseEnum* = concept x ## Type class for sparse enum's.
x is enum and x isnot Ordinal
type SomeSparseEnum* = (not Ordinal) and enum ## sparse enum's, a.k.a enum with holes

#[
xxx `runnableExamples` isn't run if inside:
Expand Down

0 comments on commit 88b315c

Please sign in to comment.