I ran into some assertion failures to do with ref
s while working on an OpenPlanet plugin. (original issue: https://github.com/openplanet-nl/issues/issues/241)
I was trying a hacky way to pass arbitrary data via ref
to a coroutine: cast<ref>({cast<ref>(layer), cast<ref>({pageName})})
.
This produced the following assertion failures:
I got a compile error after that, and could continue on as normal.
The compile error was No conversion from '<unrecognized token>' to ‘ref’ available.
(See the github issue linked above for a little more details/context.)
My next iteration was this, and worked:
ref@[] ud;
ud.InsertLast(layer);
ud.InsertLast(array<string> = {pageName});
CtrlButton("Copy ML", OnClickCopyML, ud);