diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 22:14:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 22:14:50 +0800 |
commit | 73a4780aa866737851040239eee52a013b5401d0 (patch) | |
tree | 7770bff33ab194c37dd47ca0dac57f2dc322f422 /test/type_inference | |
parent | b3b71716f689be9115cdde8d6caf0314e76ae523 (diff) | |
download | lua-language-server-73a4780aa866737851040239eee52a013b5401d0.zip |
cleanup
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index fd6e464f..c2bd96b7 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -567,6 +567,14 @@ local f local <?n?> = f(nil) ]] +TEST 'unknown' [[ +---@generic K +---@type fun(a: K|integer):K +local f + +local <?n?> = f(1) +]] + TEST 'integer' [[ ---@class integer |