Skip to content

Commit

Permalink
fix: avoid crash in is check
Browse files Browse the repository at this point in the history
This makes me think if this should happen implicitly...
  • Loading branch information
hishamhm committed Aug 15, 2024
1 parent 4a86412 commit f92f1f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10596,7 +10596,7 @@ self:expand_type(node, values, elements) })
elseif t.typename == "nominal" then
self:resolve_nominal(t)
local rt = t.resolved
if rt.typename == "typedecl" then
if rt and rt.typename == "typedecl" then
t.resolved = rt.def
end
end
Expand Down
2 changes: 1 addition & 1 deletion tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -10596,7 +10596,7 @@ do
elseif t is NominalType then
self:resolve_nominal(t)
local rt = t.resolved
if rt is TypeDeclType then
if rt and rt is TypeDeclType then
t.resolved = rt.def
end
end
Expand Down

0 comments on commit f92f1f0

Please sign in to comment.