From ce9e8a5033dd9ea9bfd2bb2c53af0906e638db28 Mon Sep 17 00:00:00 2001 From: sumneko Date: Wed, 10 Apr 2019 20:03:20 +0800 Subject: =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=AE=8C=E6=88=90=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=20=5F=5Findex=20=E5=85=83=E6=96=B9=E6=B3=95=E5=86=85=E7=9A=84?= =?UTF-8?q?=E6=88=90=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/completion/init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'server/test/completion') diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index ed68dec5..6c1fe7ad 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -755,3 +755,17 @@ local *tocl@ kind = CompletionItemKind.Keyword, } } + +TEST [[ +local mt = {} +mt.__index = mt +local t = setmetatable({}, mt) + +t.@ +]] +{ + { + label = '__index', + kind = CompletionItemKind.Field, + } +} -- cgit v1.2.3