Skip to content

Commit

Permalink
Made compatible with nim development
Browse files Browse the repository at this point in the history
  • Loading branch information
beef331 committed May 15, 2024
1 parent a5224b9 commit e1accb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions traitor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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.}
Expand Down
2 changes: 1 addition & 1 deletion traitor.nimble
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit e1accb7

Please sign in to comment.