summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/no-implicit-any.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/no-implicit-any.lua')
-rw-r--r--script/core/diagnostics/no-implicit-any.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/diagnostics/no-implicit-any.lua b/script/core/diagnostics/no-implicit-any.lua
index 6ff17c81..47f1b997 100644
--- a/script/core/diagnostics/no-implicit-any.lua
+++ b/script/core/diagnostics/no-implicit-any.lua
@@ -1,7 +1,7 @@
local files = require 'files'
local guide = require 'parser.guide'
local lang = require 'language'
-local infer = require 'core.infer'
+local infer = require 'vm.infer'
return function (uri, callback)
local ast = files.getState(uri)
@@ -20,7 +20,7 @@ return function (uri, callback)
and source.type ~= 'tableindex' then
return
end
- if infer.searchAndViewInfers(source) == 'any' then
+ if infer.viewType(source) == 'any' then
callback {
start = source.start,
finish = source.finish,