From 613bc0d99563efa76d905bbafa8c0d7cb307b619 Mon Sep 17 00:00:00 2001 From: Brian Dickens Date: Mon, 16 Oct 2023 10:58:38 -0400 Subject: [PATCH] Fix case-insensitivity bug in object selection Synonyms weren't being traversed when picking object fields in non-strict mode. --- src/include/datatypes/sys-context.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/datatypes/sys-context.h b/src/include/datatypes/sys-context.h index 1d279345dd..cbf89729df 100644 --- a/src/include/datatypes/sys-context.h +++ b/src/include/datatypes/sys-context.h @@ -334,6 +334,7 @@ inline static REBVAR *MOD_VAR(Context(*) c, Symbol(const*) sym, bool strict) { } if (strict) return nullptr; + sym = LINK(Synonym, sym); } while (synonym != sym); return nullptr; }