Skip to content

Commit 1c08c00

Browse files
committed
reset
1 parent 2bf30bd commit 1c08c00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

meta/template/basic.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function setfenv(f, table) end
248248

249249
---#DES 'setmetatable'
250250
---@param table table
251-
---@param metatable? metatable
251+
---@param metatable? metatable|table
252252
---@return table
253253
function setmetatable(table, metatable) end
254254

script/core/diagnostics/assign-type-mismatch.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ return function (uri, callback)
103103

104104
-- local Cat = setmetatable({}, {__index = Animal}) 允许逆变
105105
if hasMarkClass(source) then
106-
if vm.canCastType(uri, valueNode:copy():remove 'metatable', varNode) then
106+
if vm.canCastType(uri, valueNode:copy():remove 'table', varNode) then
107107
return
108108
end
109109
end

0 commit comments

Comments
 (0)