We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2010e commit 81e9c6bCopy full SHA for 81e9c6b
lib/AST/NameLookup.cpp
@@ -2833,10 +2833,9 @@ resolveTypeDeclsToNominal(Evaluator &evaluator,
2833
// Recognize Swift.AnyObject directly.
2834
if (typealias->getName().is("AnyObject")) {
2835
// Type version: an empty class-bound existential.
2836
- if (typealias->hasInterfaceType()) {
2837
- if (auto type = typealias->getUnderlyingType())
2838
- if (type->isAnyObject())
2839
- anyObject = true;
+ if (auto type = typealias->getUnderlyingType()) {
+ if (type->isAnyObject())
+ anyObject = true;
2840
}
2841
// TypeRepr version: Builtin.AnyObject
2842
else if (auto *qualIdentTR = dyn_cast_or_null<QualifiedIdentTypeRepr>(
0 commit comments