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:
Eric 2024-05-17 09:45:03 +10:00
parent e889b76dda
commit 22c5ff51ca
No known key found for this signature in database

View File

@ -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("")