miniscript
miniscript copied to clipboard
Type error while looking up map value
Code to replicate:
a = {}
a.b = {}
a.b.c = {}
(@a.b).c

The mystery deepens: the map reference returns the appropriate value when the index is in bracket notation.
a.b = {}
a.b.c = {}
(@a.b).c
(@a.b)["c"]
Confirmed that this behavior exists in both C++ and C#. And it only happens with (@a.b).c, not with (a.b).c.
So, this is a legitimate bug, though in an edge-case syntax that I can think of no practical use for. Going to keep it open, but not prioritize it for this next (minor) update.