From aa07fb7bc8a8b78ed14db23a19f501520ae7b545 Mon Sep 17 00:00:00 2001 From: Jason N Date: Wed, 31 Jan 2024 13:45:00 +1100 Subject: [PATCH] Add missing type to call in `b_show_enum_type` --- lib/builtins.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/builtins.cpp b/lib/builtins.cpp index 008380bfe..540b86e61 100644 --- a/lib/builtins.cpp +++ b/lib/builtins.cpp @@ -2291,6 +2291,7 @@ std::string b_show_enum_type(EnvI& env, Expression* e, Type t, bool dzn, bool js auto* call = Call::a(Location().introduce(), enumName, args); auto* fi = env.model->matchFn(env, call, false, true); call->decl(fi); + Expression::type(call, Type::parstring()); return eval_string(env, call); }