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
$ nim -v
Nim Compiler Version 1.7.1 [Linux: amd64]
Compiled at 2022-07-17
Copyright (c) 2006-2022 by Andreas Rumpf
git hash: 0d8bec695606a65c5916d0da7fcb0a976a4e1f7b
active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
Changing to template withObj*(T: typedesc[object], body: untyped) is a workaround. nim-lang/RFCs#402 is not related because overloading isn't relevant here.
Example
Current Output
Note that both dummy2 & dummy3 do not compile (both with the same error on different line) while dummy1 works.
Expected Output
Program should compile and run, echo-ing 3 empty Foo object
Additional Information
This looks similar / related to #19556.
Also relevant ? nim-lang/RFCs#402
Tested with Nim release v1.6.6 and latest devel :
The text was updated successfully, but these errors were encountered: