Closed thetarnav closed 2 months ago
to replicate:
package bug Rect :: struct {y: f32} rect_empty :: Rect{} foo :: proc (r: Rect, y: f32) -> (res: Rect) { res = r res.y += y return }
then remove struct {y: f32} from the third line, leaving only Rect ::
struct {y: f32}
Rect ::
it doesn't crash when you have Rect :: from the start after restart
here is the assert that fails:
in internal_resolve_type_expression for the res.y selector node
internal_resolve_type_expression
res.y
Should be fixed in rename.
to replicate:
then remove
struct {y: f32}
from the third line, leaving onlyRect ::
it doesn't crash when you have
Rect ::
from the start after restarthere is the assert that fails:
in
internal_resolve_type_expression
for theres.y
selector node