summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2023-05-31 16:47:37 +0800
committerfesily <fesil@foxmail.com>2023-05-31 16:47:37 +0800
commit1c08c00fea5e8cd83bcc2b805b5324d26fb53e58 (patch)
tree8033f84b3cc796771142838f19864e8b6676a5a5 /script
parent2bf30bdd364a4c7a02340d2ebb5360cf8002f2f1 (diff)
downloadlua-language-server-1c08c00fea5e8cd83bcc2b805b5324d26fb53e58.zip
reset
Diffstat (limited to 'script')
-rw-r--r--script/core/diagnostics/assign-type-mismatch.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/assign-type-mismatch.lua b/script/core/diagnostics/assign-type-mismatch.lua
index 32d6d7f7..8472e87c 100644
--- a/script/core/diagnostics/assign-type-mismatch.lua
+++ b/script/core/diagnostics/assign-type-mismatch.lua
@@ -103,7 +103,7 @@ return function (uri, callback)
-- local Cat = setmetatable({}, {__index = Animal}) 允许逆变
if hasMarkClass(source) then
- if vm.canCastType(uri, valueNode:copy():remove 'metatable', varNode) then
+ if vm.canCastType(uri, valueNode:copy():remove 'table', varNode) then
return
end
end