I've been doing some code refactoring and I ended up having this error:
.fatal.nim(49) sysFatal
Error: unhandled exception: 'ident' is not accessible using discriminant 'kind' of type 'TNode' [FieldDefect]
And that's all I get.
Any pointers as to where I look? (I obviously have several (ref) objects, with case ... of ... fields, so it must be one of them, but I have no idea what this actually might mean...)
I've just spotted this:
https://github.com/nim-lang/Nim/issues/15707
So... has it been fixed? On devel?
Just tried with:
Nim Compiler Version 1.5.1 [MacOSX: amd64]
Compiled at 2021-01-26
Copyright (c) 2006-2021 by Andreas Rumpf
Still nothing.
Any ideas?
I'm still struggling to figure out what is going on. The codebase is rather big, so it's very difficult to isolate the bug. I've experimented with commenting in/out different parts of the code and I tend to believe that the error has to do with nested templates.
When/If I have something more concrete, I will open an issue.