diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-11 17:07:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-11 17:07:31 +0800 |
commit | 62dee501181ebfa374c827df5a15ea9461f38b73 (patch) | |
tree | 0e35d3e05bff26818c5bdc6bcba900163be7d516 /test/references | |
parent | f10dd2af22efeb5330f2da23d615ff7bc213b1eb (diff) | |
download | lua-language-server-62dee501181ebfa374c827df5a15ea9461f38b73.zip |
update
Diffstat (limited to 'test/references')
-rw-r--r-- | test/references/all.lua | 18 | ||||
-rw-r--r-- | test/references/init.lua | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/test/references/all.lua b/test/references/all.lua index a9442ae1..f8fe3d6e 100644 --- a/test/references/all.lua +++ b/test/references/all.lua @@ -211,3 +211,21 @@ function <!A!>:f() end local <!b!> = <!A!>:f() ]] + +TEST [[ +local function f() + return <~<!function~> () + end!> +end + +local <!f2!> = f() +]] + +TEST [[ +local function f() + return nil, <~<!function~> () + end!> +end + +local _, <!f2!> = f() +]] diff --git a/test/references/init.lua b/test/references/init.lua index e90cb2a8..237e41da 100644 --- a/test/references/init.lua +++ b/test/references/init.lua @@ -138,24 +138,6 @@ end ]] TEST [[ -local function f() - return <~<!function~> () - end!> -end - -local <!f2!> = f() -]] - -TEST [[ -local function f() - return nil, <~<!function~> () - end!> -end - -local _, <!f2!> = f() -]] - -TEST [[ local <?x?> local function f() return <!x!> |