From cb16010fbb4128e2a5a31013e02b8cc4a4318be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 22 Aug 2023 17:08:39 +0800 Subject: fix wrong `missing-fields` with union types fix #2252 --- locale/zh-cn/script.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'locale/zh-cn/script.lua') diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index b59411a9..6459a104 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -169,7 +169,7 @@ DIAG_INVISIBLE_PACKAGE = DIAG_GLOBAL_ELEMENT = '全局变量。' DIAG_MISSING_FIELDS = -'缺少字段: {}' +'缺少类型 `{1}` 的必要字段: {2}' DIAG_INJECT_FIELD = '不能在 `{class}` 的引用中注入字段 `{field}` 。{fix}' DIAG_INJECT_FIELD_FIX_CLASS = -- cgit v1.2.3