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
Trying to use a struct that implements __refitem__ in an alias gives a compiler error: error: value doesn't have a memory type. Related to excluded InlineArray tests and #2372.
error: value doesn't have a memory type _ = foo.__refitem__[__mlir_attr.`0: i1`, __lifetime_of(foo)](0) ^~~~~~~~~~~~~~~~~~mojo: error: failed to parse the provided Mojo source module
Using the foo[0] shorthand is a different error. I assume this is correct that it can not infer parameters but the root cause is the error given above when all parameters are explicit.
error: invalid call to '__refitem__': callee expects 2 parameters, but 0 were specified _ = foo[0] ~~~^~~/Users/mikowals/projects/mojo/stdlib/scratch.mojo:12:8: note: function declared here fn __refitem__[ ^mojo: error: failed to parse the provided Mojo source module
Bug description
Trying to use a struct that implements
__refitem__
in an alias gives a compiler error:error: value doesn't have a memory type
. Related to excluded InlineArray tests and #2372.Steps to reproduce
Compiler output:
Using the
foo[0]
shorthand is a different error. I assume this is correct that it can not infer parameters but the root cause is the error given above when all parameters are explicit.System information
The text was updated successfully, but these errors were encountered: