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.
isOpenedAnyObject
1 parent f7ce3e9 commit 14e0756Copy full SHA for 14e0756
lib/Sema/CSApply.cpp
@@ -77,9 +77,7 @@ static bool isOpenedAnyObject(Type type) {
77
if (!archetype || !archetype->isRoot())
78
return false;
79
80
- return (archetype->requiresClass() &&
81
- archetype->getConformsTo().empty() &&
82
- !archetype->getSuperclass());
+ return archetype->getExistentialType()->isAnyObject();
83
}
84
85
SubstitutionMap
0 commit comments