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 5aaf2ce commit 01145c0Copy full SHA for 01145c0
lib/AST/Type.cpp
@@ -1493,13 +1493,19 @@ bool TypeBase::isCallableNominalType(DeclContext *dc) {
1493
}
1494
1495
bool TypeBase::hasDynamicMemberLookupAttribute() {
1496
+ if (!mayHaveMembers())
1497
+ return false;
1498
+
1499
auto canTy = getCanonicalType();
1500
auto &ctx = canTy->getASTContext();
1501
return evaluateOrDefault(
1502
ctx.evaluator, HasDynamicMemberLookupAttributeRequest{canTy}, false);
1503
1504
1505
bool TypeBase::hasDynamicCallableAttribute() {
1506
1507
1508
1509
1510
1511
0 commit comments