Skip to content

Commit 3ff5339

Browse files
committed
[Type checker] Update for 5.0 branch.
1 parent 691905e commit 3ff5339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4973,7 +4973,7 @@ checkExtensionGenericParams(TypeChecker &tc, ExtensionDecl *ext, Type type,
49734973
static bool isNonGenericTypeAliasType(Type type) {
49744974
// A non-generic typealias can extend a specialized type.
49754975
if (auto *aliasType = dyn_cast<NameAliasType>(type.getPointer()))
4976-
return aliasType->getDecl()->getGenericContextDepth() == (unsigned)-1;
4976+
return aliasType->getDecl()->getGenericParamsOfContext() == nullptr;
49774977

49784978
return false;
49794979
}

0 commit comments

Comments
 (0)