summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-31 23:00:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-31 23:00:02 +0800
commitc1ca4d8af0cefd6222b76f83341774857cef44ec (patch)
tree135a6c44cee6e253a20dd33c78e5c85db3eb6495 /test/type_inference/init.lua
parent3e516dd717440cad6fce8731a2b627abc6335bbb (diff)
downloadlua-language-server-c1ca4d8af0cefd6222b76f83341774857cef44ec.zip
cleanup
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r--test/type_inference/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index e687afe1..1a2c4593 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -31,9 +31,9 @@ function TEST(wanted)
files.setText('', newScript)
local source = getSource(catched['?'][1][1])
assert(source)
- local result = infer.viewType(source)
+ local result = infer.getInfer(source):view()
if wanted ~= result then
- infer.viewType(source)
+ infer.getInfer(source):view()
end
assert(wanted == result)
files.remove('')