diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-08 17:40:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-08 17:40:52 +0800 |
commit | f82740088014a0dcd29dcefd29ef7e019b71a772 (patch) | |
tree | be1b4ceb7b86a353a05b0d307d9ceb1cd8de68cb /script/vm/global.lua | |
parent | decf02ad1f708f9e2eb7d50d9765b22ae21f0425 (diff) | |
download | lua-language-server-f82740088014a0dcd29dcefd29ef7e019b71a772.zip |
check type for `Enum -> Other`
fix #1675
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r-- | script/vm/global.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua index 6f3bcb68..1bd7576d 100644 --- a/script/vm/global.lua +++ b/script/vm/global.lua @@ -378,13 +378,11 @@ local compilerGlobalSwitch = util.switch() source._enums[#source._enums+1] = field local subType = vm.declareGlobal('type', name .. '.' .. field.field[1], uri) subType:addSet(uri, field) - field._globalNode = subType elseif field.type == 'tableindex' then source._enums[#source._enums+1] = field if field.index.type == 'string' then local subType = vm.declareGlobal('type', name .. '.' .. field.index[1], uri) subType:addSet(uri, field) - field._globalNode = subType end end end |