diff options
author | sumneko <sumneko@hotmail.com> | 2022-03-09 01:39:32 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-03-09 01:39:32 +0800 |
commit | 9fb4ddc94e72856a98239d6f519f70ebaae2f03f (patch) | |
tree | 0d1ef6a5074ae0317ec1a249449dba3750df9870 /test | |
parent | 429a75cb3564b3a9a612fde78aeb7aa937f4a683 (diff) | |
download | lua-language-server-9fb4ddc94e72856a98239d6f519f70ebaae2f03f.zip |
update
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index e02cc38e..10dcf145 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -146,7 +146,7 @@ TEST 'boolean' [[ <?x?> = a == b ]] -TEST 'any' [[ +TEST 'integer' [[ <?x?> = a << b ]] @@ -154,7 +154,7 @@ TEST 'integer' [[ <?x?> = 1 << 2 ]] -TEST 'any' [[ +TEST 'string' [[ <?x?> = a .. b ]] @@ -162,7 +162,15 @@ TEST 'string' [[ <?x?> = 'a' .. 'b' ]] -TEST 'any' [[ +TEST 'string' [[ +<?x?> = 'a' .. 1 +]] + +TEST 'string' [[ +<?x?> = 'a' .. 1.0 +]] + +TEST 'number' [[ <?x?> = a + b ]] @@ -170,6 +178,10 @@ TEST 'number' [[ <?x?> = 1 + 2.0 ]] +TEST 'integer' [[ +<?x?> = 1 + 2 +]] + TEST 'tablelib' [[ ---@class tablelib table = {} |