summaryrefslogtreecommitdiff
path: root/script/vm/node/union.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-25 17:42:34 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-25 17:42:34 +0800
commit674eb3f23cc00d2f679281abe16634f6b1663d31 (patch)
tree1fa97a453125007d49d4efa0cb8bfe2910e8afc1 /script/vm/node/union.lua
parent32dcf712ce2b08a124718c519e43dd327a15d748 (diff)
downloadlua-language-server-674eb3f23cc00d2f679281abe16634f6b1663d31.zip
update
Diffstat (limited to 'script/vm/node/union.lua')
-rw-r--r--script/vm/node/union.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/node/union.lua b/script/vm/node/union.lua
index b944b92d..538e7586 100644
--- a/script/vm/node/union.lua
+++ b/script/vm/node/union.lua
@@ -48,7 +48,8 @@ end
---@return vm.node.union
return function (me, node)
local union = setmetatable({
- [1] = me,
+ [1] = me,
+ [me] = true,
}, mt)
union:merge(node)
return union