You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably a compiler error, but I wasn't able to come up with a reproduction without jsony.
Nim version: 2.2.0
Backend: c
imported.nim
import pkg/jsony
typeFoo*=refobject
foo: float# Remove this line and everything works 🤡procserialize*(msg: Foo|float) =discardtoJson(msg)
main.nim
import imported
# import jsony # Add this line and everything works 🤡serialize(Foo())
Output
...template/generic instantiation of `toJson` from here
/Users/dawid/.nimble/pkgs2/jsony-1.1.5-6aeb83e7481ca8686396a568096054bc668294df/jsony.nim(881, 11) template/generic instantiation of `dumpHook` from here
/Users/dawid/.nimble/pkgs2/jsony-1.1.5-6aeb83e7481ca8686396a568096054bc668294df/jsony.nim(823, 6) template/generic instantiation of `dumpHook` from here
/Users/dawid/.nimble/pkgs2/jsony-1.1.5-6aeb83e7481ca8686396a568096054bc668294df/jsony.nim(801, 8) template/generic instantiation of `dumpKey` from here
/Users/dawid/.nimble/pkgs2/jsony-1.1.5-6aeb83e7481ca8686396a568096054bc668294df/jsony.nim(739, 15) Error: attempting to call undeclared routine: 'toJson'
The text was updated successfully, but these errors were encountered:
This is probably a compiler error, but I wasn't able to come up with a reproduction without jsony.
Nim version: 2.2.0
Backend: c
imported.nim
main.nim
Output
The text was updated successfully, but these errors were encountered: