diff options
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 |