mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] AST: Introduce and use Identifier::isConstructor
This commit is contained in:
@@ -4325,7 +4325,7 @@ bool MissingMemberFailure::diagnoseAsError() {
|
||||
correction->addFixits(diagnostic);
|
||||
} else if ((instanceTy->getAnyNominal() ||
|
||||
instanceTy->is<ExistentialType>()) &&
|
||||
getName().getBaseName() == DeclBaseName::createConstructor()) {
|
||||
getName().getBaseName().isConstructor()) {
|
||||
auto &cs = getConstraintSystem();
|
||||
|
||||
auto result = cs.performMemberLookup(
|
||||
|
||||
Reference in New Issue
Block a user