Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aatxe authored Sep 13, 2024
1 parent 1c6c5ad commit 001078a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Analysis/src/TypeFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2207,13 +2207,6 @@ TypeFunctionReductionResult<TypeId> indexFunctionImpl(

TypeId indexerTy = follow(typeParams.at(1));

// Whether the type is still pending.
//
// TODO: A generalized sanity check function for all type functions?
// But it should be optional for customization
// for functions that specifically need type function
// This here fixes a stack overflow.
// https://github.com/luau-lang/luau/issues/1406
if (isPending(indexerTy, ctx->solver))
{
return {std::nullopt, false, {indexerTy}, {}};
Expand Down

0 comments on commit 001078a

Please sign in to comment.