diff options
author | fesily <fesil@foxmail.com> | 2023-05-31 16:47:37 +0800 |
---|---|---|
committer | fesily <fesil@foxmail.com> | 2023-05-31 16:47:37 +0800 |
commit | 1c08c00fea5e8cd83bcc2b805b5324d26fb53e58 (patch) | |
tree | 8033f84b3cc796771142838f19864e8b6676a5a5 /script | |
parent | 2bf30bdd364a4c7a02340d2ebb5360cf8002f2f1 (diff) | |
download | lua-language-server-1c08c00fea5e8cd83bcc2b805b5324d26fb53e58.zip |
reset
Diffstat (limited to 'script')
-rw-r--r-- | script/core/diagnostics/assign-type-mismatch.lua | 2 |
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 |