soraros

Results 93 issues of soraros

### Bug description As title. Not sure it's the correct title though. ### Steps to reproduce ```mojo fn swap(inout v: DynamicVector): v[0], v[1] = v[1], v[0] ``` Code crashes with:...

bug
mojo-lang
mojo

### Bug description As title. If the line with `print` is altered slightly, the problem goes away. ### Steps to reproduce Following is reduced code from the manual, unfortunately. ```mojo...

bug
mojo-lang
mojo
crash

### Bug description `reduce_max` is reduce-splat when `size == size_out == 2`, and no opt when `size == size_out > 2`. It's caused by the special-casing in `simd.reduce`: https://github.com/modularml/mojo/blob/6d2a7b552769358ec68a94b8fd1f6c2126d59ad9/stdlib/src/builtin/simd.mojo#L1766-L1767 I...

bug
mojo-stdlib
mojo

### Bug description As title. Couldn't think of a better one, sorry. ### Steps to reproduce ```mojo fn f(): for i in range(a): ... ``` Error message looks like the...

bug
mojo-lang
mojo

### Bug description As title. Jump to definition also doesn't work. ### Steps to reproduce ```mojo fn outer(b: Bool): fn closure(): # doesn't show anything when cursor is on `closure`...

bug
mojo-tooling
mojo

### Bug description As title. If the closure is marked as `@parameter`, the problem goes away. ### Steps to reproduce ```mojo fn main(): var l = DynamicVector[Int]() fn inner(i: Int):...

bug
mojo-tooling
mojo

### Bug description As title. ### Steps to reproduce ```mojo fn f(inout total: Int): total = 0 # cmd click on `total` doesn't work ``` ### System information ```shell Mojo...

bug
mojo-tooling
mojo

### Bug description As title. `__type_of` also doesn't work. only the explicit from compiles. ### Steps to reproduce Either of the following crashes the compiler: ```mojo fn reduce[f: fn (x:...

bug
mojo-tooling
mojo

### Bug description As title. ### Steps to reproduce ```mojo from collections import Optional @value struct A(CollectionElement): var val: B.T struct B: alias T = Int var val: Optional[A] #...

bug
mojo-lang
mojo

### Bug description As title. ### Steps to reproduce ```mojo fn f(): var s = str(1) "" + s fn g(): "" + str() "" + str(1) ``` ### System...

bug
mojo-lang
mojo