File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3962,7 +3962,7 @@ NeverNullType TypeResolver::resolveASTFunctionType(
3962
3962
}
3963
3963
}
3964
3964
3965
- if (auto *lifetimeRepr = dyn_cast_or_null<LifetimeDependentReturnTypeRepr >(
3965
+ if (auto *lifetimeRepr = dyn_cast_or_null<LifetimeDependentTypeRepr >(
3966
3966
repr->getResultTypeRepr ())) {
3967
3967
diagnoseInvalid (lifetimeRepr, lifetimeRepr->getLoc (),
3968
3968
diag::lifetime_dependence_function_type);
@@ -4518,8 +4518,8 @@ bool TypeResolver::resolveSingleSILResult(
4518
4518
4519
4519
options.setContext (TypeResolverContext::FunctionResult);
4520
4520
4521
- // Look through LifetimeDependentReturnTypeRepr .
4522
- // LifetimeDependentReturnTypeRepr will be processed separately when building
4521
+ // Look through LifetimeDependentTypeRepr .
4522
+ // LifetimeDependentTypeRepr will be processed separately when building
4523
4523
// SILFunctionType.
4524
4524
if (auto *lifetimeDependentTypeRepr =
4525
4525
dyn_cast<LifetimeDependentTypeRepr>(repr)) {
You can’t perform that action at this time.
0 commit comments