diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-27 18:17:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-27 18:17:01 +0800 |
commit | 8d319e07d95274c53ca7ee19dada6046cc015f97 (patch) | |
tree | a09cdf75ff8018fd74cd57348eebec0f80b28734 /test/type_inference | |
parent | 01f2b4679667384223bc3e2c3275fe7164b622be (diff) | |
download | lua-language-server-8d319e07d95274c53ca7ee19dada6046cc015f97.zip |
no longer infer by usage
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 23ebf54e..ba3ca304 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -92,10 +92,6 @@ TEST 'any' [[ <?x?>() ]] -TEST 'table' [[ -<?t?>.x = 1 -]] - TEST 'boolean' [[ <?x?> = not y ]] @@ -230,20 +226,6 @@ end _, <?y?> = xpcall(x) ]] -TEST 'string|table' [[ -local y = #<?x?> -]] - -TEST 'integer' [[ -local y = <?x?> << 0 -]] - -TEST 'integer' [[ -local function f(<?a?>, b) - return a << b -end -]] - TEST 'A' [[ ---@class A @@ -360,10 +342,6 @@ TEST 'A<string, number>' [[ local <?x?> ]] -TEST 'table' [[ -self.<?t?>[#self.t+1] = {} -]] - TEST 'string' [[ ---@class string @@ -382,28 +360,6 @@ local <?y?> = x[1] ]] TEST 'table' [[ -local <?t?> -print(t.sub()) -]] - -TEST 'string|table' [[ -local <?t?> -print(t:sub()) -]] - -TEST 'string' [[ -local <?t?> -print(t:sub()) -print(t .. 'a') -]] - -TEST 'string' [[ -local <?t?> -print(#t) -print(t .. 'a') -]] - -TEST 'table' [[ local t = {} local <?v?> = setmetatable(t) ]] |