diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 14:40:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 14:40:22 +0800 |
commit | 2e57e65b6fa218d9de47473628940f8d2db43f79 (patch) | |
tree | 9629a1cec1de6c025c2bf5eb9b1b086dd72d5e6f /test/signature | |
parent | 892f85f606d166960b66a8aba2e36215d648b311 (diff) | |
download | lua-language-server-2e57e65b6fa218d9de47473628940f8d2db43f79.zip |
#400 fix signature behind `}`
Diffstat (limited to 'test/signature')
-rw-r--r-- | test/signature/init.lua | 13 |
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}, +} |