summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 4dc3edef..fd1d1d5d 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -111,14 +111,14 @@ local searchFieldSwitch = util.switch()
or (fn.name == 'number' and type(key) == 'number')
or (fn.name == 'integer' and math.tointeger(key))
or (fn.name == 'string' and type(key) == 'string') then
- pushResult(field.extends)
+ pushResult(field)
end
end
end
end
if fieldKey.type == 'doc.field.name' then
if key == nil or fieldKey[1] == key then
- pushResult(field.extends)
+ pushResult(field)
end
end
end
@@ -852,6 +852,10 @@ local compilerSwitch = util.switch()
: call(function (source)
nodeMgr.setNode(source, m.compileNode(source.extends))
end)
+ : case 'doc.type.field'
+ : call(function (source)
+ nodeMgr.setNode(source, m.compileNode(source.extends))
+ end)
: case 'doc.param'
: call(function (source)
nodeMgr.setNode(source, m.compileNode(source.extends))