mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-03 02:10:53 +01:00
id = follow(id)
This commit is contained in:
parent
a8047b2e46
commit
f63ca954ff
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,8 @@ static TypeCorrectKind checkTypeCorrectKind(
|
|||
{
|
||||
for (TypeId id : itv->parts)
|
||||
{
|
||||
id = follow(id);
|
||||
|
||||
if (const FunctionType* ftv = get<FunctionType>(id); ftv && checkFunctionType(ftv))
|
||||
{
|
||||
return TypeCorrectKind::CorrectFunctionResult;
|
||||
|
|
Loading…
Add table
Reference in a new issue