mirror of
https://github.com/logos-storage/nim-serde.git
synced 2026-01-02 13:43:06 +00:00
remove enum forced scoping
Forcing a scoping for a particular enum type would only resolve that type and not all enum types.
This commit is contained in:
parent
e889b76dda
commit
22c5ff51ca
@ -338,12 +338,6 @@ proc fromJson*[T: ref object or object](_: type ?T, json: string): ?!Option[T] =
|
||||
# We can also be sure that these `fromJson` symbols can be overloaded where
|
||||
# needed.
|
||||
static:
|
||||
type MyEnum = enum
|
||||
one
|
||||
|
||||
discard MyEnum.fromJson("")
|
||||
discard Option[MyEnum].fromJson("")
|
||||
discard seq[MyEnum].fromJson("")
|
||||
discard bool.fromJson("")
|
||||
discard Option[bool].fromJson("")
|
||||
discard seq[bool].fromJson("")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user