From 76d3008d98cf9cd6ed60a9aa66a87f854965f0ab Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 5 Oct 2025 14:43:57 -0400 Subject: Fix: don't allow a `lang` to be used as Text without explicitly converting it --- src/types.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/types.c b/src/types.c index 897f1ee2..ff86ab8f 100644 --- a/src/types.c +++ b/src/types.c @@ -287,9 +287,6 @@ PUREFUNC bool can_promote(type_t *actual, type_t *needed) { if (needed->tag == EnumType) return (enum_single_value_tag(needed, actual) != NULL); - // Lang to Text: - if (actual->tag == TextType && needed->tag == TextType && streq(Match(needed, TextType)->lang, "Text")) return true; - // Text to C String if (actual->tag == TextType && !Match(actual, TextType)->lang && needed->tag == CStringType) return true; -- cgit v1.2.3