summaryrefslogtreecommitdiff
path: root/script/vm/infer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/infer.lua')
-rw-r--r--script/vm/infer.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index 2d8028df..30682f37 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -220,6 +220,13 @@ function mt:_eraseAlias(uri)
if set.type == 'doc.alias' then
if expandAlias then
drop[n.name] = true
+ local newInfer = {}
+ for _, ext in ipairs(set.extends.types) do
+ viewNodeSwitch(ext.type, ext, newInfer)
+ end
+ if newInfer._hasTable then
+ self.views['table'] = true
+ end
else
for _, ext in ipairs(set.extends.types) do
local view = viewNodeSwitch(ext.type, ext, {})