Open thatstoasty opened 3 months ago
Possibly related to https://github.com/modularml/mojo/issues/3126, but this issue still persists. It seems like it has something to do with compile time. When the List of functions is given as a default argument, the pointers to the functions show up as 0x0 when inspecting the List in the debugger. But they only show up as 0x0 when iterating over the list, the pointer addresses look correct up until that point.
Bug description
Given a Struct like
Specifying a default argument value for
funcs
in the__init__()
function signature leads to an OOB error when attempting to access the functions.Steps to reproduce
Example
System information