diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 16:48:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 16:48:43 +0800 |
commit | cf20156aa05c074d3f8ea2bf12277b4b06dfc8c4 (patch) | |
tree | af108da2ace7c12f3f21f289f89f3d454c0e1541 /script/vm/compiler.lua | |
parent | 1bcadf492c4ccc19d137ffac80b0e9ca181a9ad7 (diff) | |
download | lua-language-server-cf20156aa05c074d3f8ea2bf12277b4b06dfc8c4.zip |
cleanup
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 65df3a1d..c7d57dcb 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -230,7 +230,7 @@ function vm.getClassFields(suri, object, key, ref, pushResult) or keyType == 'string' then typeName = keyType end - if typeName then + if typeName and field.field.type ~= 'doc.field.name' then -- ---@field [integer] boolean -> class[1] local fieldNode = vm.compileNode(field.field) if vm.isSubType(suri, typeName, fieldNode) then |