adjust list lens member picking rules - use default argument, then fall back to next, prev, or the first pointer to an identical type

This commit is contained in:
Ryan Fleury committed 2025-10-16 11:10:00 -07:00
1 parent a2522c00fa
commit 8dbfa97c71
7 files changed
+90 -18

No files matched your search

+1 -6
View File
@@ -2422,12 +2422,7 @@ e_push_irtree_and_type_from_expr(Arena *arena, E_IRTreeAndType *root_parent, E_I
}
if(irext != 0 && result.user_data == 0)
{
E_IRTreeAndType irtree_stripped = result;
if(type->kind == E_TypeKind_Lens)
{
irtree_stripped.type_key = e_type_key_direct(irtree_stripped.type_key);
}
E_IRExt ext = irext(arena, expr, &irtree_stripped);
E_IRExt ext = irext(arena, expr, &result);
result.user_data = ext.user_data;
}
}