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:
![image](https://user-images.githubusercontent.com/1046448/213579281-72dff896-96d2-4b3e-9046-1a60e266dea5.png)
![image](https://user-images.githubusercontent.com/1046448/213579757-2276200b-787c-41ba-8300-1322787a466f.png)
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);