diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-04 14:59:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-04 14:59:28 +0800 |
commit | 33ca6151e44074754373a1eeebbd5f53e92f4fae (patch) | |
tree | 24d541a04bf8bf5acfb9ea2bcaf0ff697029e429 /test-beta/references | |
parent | 288c114e0e6c33c47a0a59d3a4c3e3886f0c02e1 (diff) | |
download | lua-language-server-33ca6151e44074754373a1eeebbd5f53e92f4fae.zip |
支持多重call
Diffstat (limited to 'test-beta/references')
-rw-r--r-- | test-beta/references/init.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua index 6ba1f5e4..4cd21e2b 100644 --- a/test-beta/references/init.lua +++ b/test-beta/references/init.lua @@ -142,8 +142,24 @@ print(obj.<?x?>) ]] TEST [[ +local <!x!> +local function f() + return <!x!> +end +local <?y?> = f() +]] + +TEST [[ local <?x?> local function f() + return <!x!> +end +local <!y!> = f() +]] + +TEST [[ +local <!x!> +local function f() return function () return <!x!> end @@ -151,6 +167,16 @@ end local <?y?> = f()() ]] +TEST [[ +local <?x?> +local function f() + return function () + return <!x!> + end +end +local <!y!> = f()() +]] + --TEST [[ -----@class <!Class!> -----@type <?Class?> |