summaryrefslogtreecommitdiff
path: root/script/vm/type.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/type.lua')
-rw-r--r--script/vm/type.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/vm/type.lua b/script/vm/type.lua
index 05ada9ea..982f937d 100644
--- a/script/vm/type.lua
+++ b/script/vm/type.lua
@@ -84,6 +84,9 @@ function vm.isSubType(uri, child, parent, mark)
return false
end
+ ---@cast child vm.object
+ ---@cast parent vm.object
+
local childName = getNodeName(child)
local parentName = getNodeName(parent)
if childName == 'any'
@@ -146,7 +149,7 @@ end
---@param uri uri
---@param tnode vm.node
----@param knode vm.node
+---@param knode vm.node|string
---@return vm.node?
function vm.getTableValue(uri, tnode, knode)
local result = vm.createNode()