diff --git a/traitor.nim b/traitor.nim index 55ad856..de6c748 100644 --- a/traitor.nim +++ b/traitor.nim @@ -50,9 +50,9 @@ macro isGenericImpl(t: typedesc): untyped = proc isGeneric*(t: typedesc): bool = isGenericImpl(t) -type Atom* = distinct void ## +type Atom* = distinct int ## ## Default field name to be replaced for all Traits. - ## As it derives from void it never can be instantiated. + ## Should be `distinct void` to prevent instantiation... proc atomCount(p: typedesc[proc]): int = {.warning[UnsafeDefault]: off.} diff --git a/traitor.nimble b/traitor.nimble index d4db6d3..73bf5d1 100644 --- a/traitor.nimble +++ b/traitor.nimble @@ -1,6 +1,6 @@ # Package -version = "0.2.14" +version = "0.2.15" author = "Jason Beetham" description = "Trait-like package made without insight" license = "MIT"