From 3958723467b8ddb62e471c01c1bb38950ec3c28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 19 Nov 2019 21:10:55 +0800 Subject: =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/test/type_inference/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server-beta/test') diff --git a/server-beta/test/type_inference/init.lua b/server-beta/test/type_inference/init.lua index 4a9f30aa..fd98e544 100644 --- a/server-beta/test/type_inference/init.lua +++ b/server-beta/test/type_inference/init.lua @@ -30,7 +30,7 @@ function TEST(wanted) files.setText('', newScript) local source = getSource(pos) assert(source) - local result = searcher.typeInference(source) or 'any' + local result = searcher.getValue(source) or 'any' assert(wanted == result) end end @@ -113,7 +113,7 @@ TEST 'integer' [[ = ~ y ]] -TEST 'number' [[ +TEST 'integer' [[ local a = true local b = 1 = a and b -- cgit v1.2.3