From b0dd7700d7112c3154d1c611339b9bc7d36c163e Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Wed, 30 Apr 2025 17:04:10 -0700 Subject: [PATCH] apply autocasting below the ir-tree generation level of lens calls, so that we don't accidentally strip away lenses --- src/eval/eval_ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eval/eval_ir.c b/src/eval/eval_ir.c index 3652884d..c3707912 100644 --- a/src/eval/eval_ir.c +++ b/src/eval/eval_ir.c @@ -2173,7 +2173,7 @@ e_push_irtree_and_type_from_expr(Arena *arena, E_IRTreeAndType *root_parent, B32 //- rjf: if the evaluated type has a virtual table pointer, then we must // pre-emptively evaluate this ir tree, and determine a more resolved type. { - E_TypeKey type_key = e_type_key_unwrap(result.type_key, E_TypeUnwrapFlag_AllDecorative); + E_TypeKey type_key = e_type_key_unwrap(result.type_key, E_TypeUnwrapFlag_Modifiers); if(e_type_kind_is_pointer_or_ref(e_type_kind_from_key(type_key))) { E_TypeKey ptee_key = e_type_key_unwrap(result.type_key, E_TypeUnwrapFlag_All);