diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-10 17:54:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-10 17:54:42 +0800 |
commit | 32fd9f2cef67919ef37d7a6396ae0a8c7d7f224f (patch) | |
tree | eb76f5d29360cd2cdc05ff428e9e4a7aa7f13c6b /test | |
parent | 2178706a33e6f15a8cea567c352d9a567c38abb9 (diff) | |
download | lua-language-server-32fd9f2cef67919ef37d7a6396ae0a8c7d7f224f.zip |
update
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 19506775..5ebe5778 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -315,7 +315,7 @@ local <?x?> = f() --]] -- 不根据对方函数内的使用情况来推测 -TEST 'any' [[ +TEST 'unknown' [[ local function x(a) _ = a + 1 end @@ -323,7 +323,7 @@ local b x(<?b?>) ]] -TEST 'any' [[ +TEST 'unknown' [[ local function x(a, ...) local _, <?b?>, _ = ... end @@ -331,18 +331,18 @@ x(nil, 'xx', 1, true) ]] -- 引用不跨越参数 -TEST 'any' [[ +TEST 'unknown' [[ local function x(a, ...) return true, 'ss', ... end local _, _, _, <?b?>, _ = x(nil, true, 1, 'yy') ]] -TEST 'any' [[ +TEST 'unknown' [[ local <?x?> = next() ]] -TEST 'any' [[ +TEST 'unknown' [[ local a, b function a() return b() |