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
The size parameter of the InlineArray is constrained to numbers of at least 1. I am sure this is intentional, as it may make little sense to create zero-size array. However, this blocks some common use cases when working with parameterized functions.
The expected behaviour is that this would simply print nothing. However, the program does not compile as it fails to run the pass manager. Of course there are more important use cases, which currently can only be covered with a verbous extra overload.
System information
I tested this on Mojo Playground, v24.6
The text was updated successfully, but these errors were encountered:
Bug description
[This may also be seen as a feature request]
The
size
parameter of theInlineArray
is constrained to numbers of at least1
. I am sure this is intentional, as it may make little sense to create zero-size array. However, this blocks some common use cases when working with parameterized functions.Steps to reproduce
Consider the following example:
The expected behaviour is that this would simply print nothing. However, the program does not compile as it fails to run the pass manager. Of course there are more important use cases, which currently can only be covered with a verbous extra overload.
System information
The text was updated successfully, but these errors were encountered: