Type system does not recognize that a literal int is equal to an Int alias
I have a simple struct called Cube:
I've simplified the code: what remains is the following issue. (Obviously, in this contrived example, N can just be replaced by 1), but for real-world code, I cannot.
Error:
mojo 0.4.0 (9e33b013)
Question: Does anyone know how to
I've simplified the code: what remains is the following issue. (Obviously, in this contrived example, N can just be replaced by 1), but for real-world code, I cannot.
Error:
cannot implicitly convert 'Cube[T, N]' value to 'Cube[T, 1]' in return valuemojo 0.4.0 (9e33b013)
Question: Does anyone know how to
cast my x (of type Cube[T, N] to Cube[T, 1]? Or is there another way to get the type system to accept this?