summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/diagnostics/cast-local-type.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/diagnostics/cast-local-type.lua b/script/core/diagnostics/cast-local-type.lua
index 1998b915..26445374 100644
--- a/script/core/diagnostics/cast-local-type.lua
+++ b/script/core/diagnostics/cast-local-type.lua
@@ -16,6 +16,9 @@ return function (uri, callback)
if not loc.ref then
return
end
+ if loc[1] == '_' then
+ return
+ end
await.delay()
local locNode = vm.compileNode(loc)
if not locNode.hasDefined then