Skip to content

Commit

Permalink
no need to type_at(a_typedecl())
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Aug 18, 2024
1 parent dab1866 commit eb2e296
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 @@ -12290,7 +12290,7 @@ self:expand_type(node, values, elements) })
}

function TypeChecker:begin_temporary_record_types(typ)
self:add_var(nil, "@self", type_at(typ, a_type(typ, "typedecl", { def = typ })))
self:add_var(nil, "@self", a_type(typ, "typedecl", { def = typ }))

for fname, ftype in fields_of(typ) do
if ftype.typename == "typealias" then
Expand Down
2 changes: 1 addition & 1 deletion tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -12290,7 +12290,7 @@ do
}

function TypeChecker:begin_temporary_record_types(typ: RecordType)
self:add_var(nil, "@self", type_at(typ, a_typedecl(typ, typ)))
self:add_var(nil, "@self", a_typedecl(typ, typ))

for fname, ftype in fields_of(typ) do
if ftype is TypeAliasType then
Expand Down

0 comments on commit eb2e296

Please sign in to comment.