summaryrefslogtreecommitdiff
path: root/test/signature/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-22 14:40:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-22 14:40:22 +0800
commit2e57e65b6fa218d9de47473628940f8d2db43f79 (patch)
tree9629a1cec1de6c025c2bf5eb9b1b086dd72d5e6f /test/signature/init.lua
parent892f85f606d166960b66a8aba2e36215d648b311 (diff)
downloadlua-language-server-2e57e65b6fa218d9de47473628940f8d2db43f79.zip
#400 fix signature behind `}`
Diffstat (limited to 'test/signature/init.lua')
-rw-r--r--test/signature/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/signature/init.lua b/test/signature/init.lua
index fca995bd..c7b9a137 100644
--- a/test/signature/init.lua
+++ b/test/signature/init.lua
@@ -190,3 +190,16 @@ function f2(c: any, d: any)
]],
arg = {21, 26},
}
+
+TEST [[
+local function f(a, b, c)
+end
+
+f({},$)
+]]
+{
+ label = [[
+function f(a: any, b: any, c: any)
+]],
+ arg = {20, 25},
+}