From 8d319e07d95274c53ca7ee19dada6046cc015f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 27 Sep 2021 18:17:01 +0800 Subject: no longer infer by usage --- test/type_inference/init.lua | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'test/type_inference') 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' [[ () ]] -TEST 'table' [[ -.x = 1 -]] - TEST 'boolean' [[ = not y ]] @@ -230,20 +226,6 @@ end _, = xpcall(x) ]] -TEST 'string|table' [[ -local y = # -]] - -TEST 'integer' [[ -local y = << 0 -]] - -TEST 'integer' [[ -local function f(, b) - return a << b -end -]] - TEST 'A' [[ ---@class A @@ -360,10 +342,6 @@ TEST 'A' [[ local ]] -TEST 'table' [[ -self.[#self.t+1] = {} -]] - TEST 'string' [[ ---@class string @@ -381,28 +359,6 @@ local x = f() local = x[1] ]] -TEST 'table' [[ -local -print(t.sub()) -]] - -TEST 'string|table' [[ -local -print(t:sub()) -]] - -TEST 'string' [[ -local -print(t:sub()) -print(t .. 'a') -]] - -TEST 'string' [[ -local -print(#t) -print(t .. 'a') -]] - TEST 'table' [[ local t = {} local = setmetatable(t) -- cgit v1.2.3