You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement a self-referential Struct using Optional[ArcPointer], since this seems to be the recommended approach while OwnedPointer can't be used with Optional. Mojo is crashing when I define the following Struct:
I've run into this as well while working on a cli library. I ended up using a ArcPointer[Optional[T]] for a bit, but recently switched to a List[ArcPointer[T]] and just make sure the list is only ever 0 or 1 elements. Not ideal, but works in the interim.
Bug description
I'm trying to implement a self-referential
Struct
usingOptional[ArcPointer]
, since this seems to be the recommended approach whileOwnedPointer
can't be used withOptional
. Mojo is crashing when I define the followingStruct
:Steps to reproduce
System information
The text was updated successfully, but these errors were encountered: