Skip to content

Commit

Permalink
Merge pull request #2263 from overhacked/ignore_cast-local-type_under…
Browse files Browse the repository at this point in the history
…score

Ignore `cast-local-type` diagnostic for `_` local
  • Loading branch information
sumneko authored Aug 15, 2023
2 parents f09aa41 + 39bb791 commit 7a47ada
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script/core/diagnostics/cast-local-type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a47ada

Please sign in to comment.