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 4308cab commit a1a07d8Copy full SHA for a1a07d8
lib/AST/NameLookup.cpp
@@ -2830,10 +2830,9 @@ resolveTypeDeclsToNominal(Evaluator &evaluator,
2830
// Recognize Swift.AnyObject directly.
2831
if (typealias->getName().is("AnyObject")) {
2832
// Type version: an empty class-bound existential.
2833
- if (typealias->hasInterfaceType()) {
2834
- if (auto type = typealias->getUnderlyingType())
2835
- if (type->isAnyObject())
2836
- anyObject = true;
+ if (auto type = typealias->getUnderlyingType()) {
+ if (type->isAnyObject())
+ anyObject = true;
2837
}
2838
// TypeRepr version: Builtin.AnyObject
2839
else if (auto *qualIdentTR = dyn_cast_or_null<QualifiedIdentTypeRepr>(
0 commit comments