I have this line of code:
var ret = DICT(cast[Context](@[]))
Run
DICT takes Context as a param. And a Context is nothing but a seq[(int,int)].
Obviously, an empty sequence can be anything, so I cast it to Context.
Now, the thing is: when I compile it with "c", everything goes smooth; when I
compile it with "cpp" (clang++ on macOS), I have the following error:
error: assigning to 'TGenericSeq *' from incompatible type
'tySequence__77YVzYb2AOu2vP0iI0b8Dw *'
T11_ = (tySequence__77YVzYb2AOu2vP0iI0b8Dw*)0;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Run
Any workarounds?