summaryrefslogtreecommitdiff
path: root/server/src/emmy
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-07-03 21:18:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-07-03 21:18:17 +0800
commit2205e8bb9a0b40ce7eeca0fb4f959dd12b1466c1 (patch)
tree3961a4352cabd9a4f6f64681b21fbb5f0d1da729 /server/src/emmy
parent421fcdde17d416a45a33480cb9d48bab267f04eb (diff)
downloadlua-language-server-2205e8bb9a0b40ce7eeca0fb4f959dd12b1466c1.zip
修正一个报错
Diffstat (limited to 'server/src/emmy')
-rw-r--r--server/src/emmy/manager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/emmy/manager.lua b/server/src/emmy/manager.lua
index 11aa899c..72867b1a 100644
--- a/server/src/emmy/manager.lua
+++ b/server/src/emmy/manager.lua
@@ -147,7 +147,7 @@ function mt:addParam(source, bind)
paramObj:bindGeneric(bind)
else
paramObj:bindType(bind)
- self:eachClass(bind:getName(), function (class)
+ self:eachClass(bind:getType(), function (class)
if class.type == 'emmy.alias' then
class:eachEnum(function (enum)
paramObj:addEnum(enum)