From ecd09fc50a5199bc2f4888b5c11aec754101da5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 11 Jul 2022 15:21:56 +0800 Subject: small fix --- script/core/diagnostics/unknown-cast-variable.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/core/diagnostics/unknown-cast-variable.lua b/script/core/diagnostics/unknown-cast-variable.lua index 57377f6e..3f082a50 100644 --- a/script/core/diagnostics/unknown-cast-variable.lua +++ b/script/core/diagnostics/unknown-cast-variable.lua @@ -24,7 +24,7 @@ return function (uri, callback) callback { start = doc.loc.start, finish = doc.loc.finish, - message = lang.script('DIAG_UNKNOWN_CAST_VARIABLE', doc[1]) + message = lang.script('DIAG_UNKNOWN_CAST_VARIABLE', doc.loc[1]) } end end -- cgit v1.2.3