Skip to content

Commit 7a47ada

Browse files
authored
Merge pull request #2263 from overhacked/ignore_cast-local-type_underscore
Ignore `cast-local-type` diagnostic for `_` local
2 parents f09aa41 + 39bb791 commit 7a47ada

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

script/core/diagnostics/cast-local-type.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ return function (uri, callback)
1616
if not loc.ref then
1717
return
1818
end
19+
if loc[1] == '_' then
20+
return
21+
end
1922
await.delay()
2023
local locNode = vm.compileNode(loc)
2124
if not locNode.hasDefined then

0 commit comments

Comments
 (0)