mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Migrate to calling interfaceType and remove SelfParam
Migrate more tests
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "CSDiagnostics.h"
|
||||
#include "MiscDiagnostics.h"
|
||||
#include "TypeChecker.h"
|
||||
#include "TypeCheckConcurrency.h"
|
||||
#include "TypeCheckProtocol.h"
|
||||
#include "TypeCheckType.h"
|
||||
@@ -4100,7 +4101,7 @@ bool SubscriptMisuseFailure::diagnoseAsError() {
|
||||
bool SubscriptMisuseFailure::diagnoseAsNote() {
|
||||
if (auto overload = getOverloadChoiceIfAvailable(getLocator())) {
|
||||
auto decl = overload->choice.getDecl();
|
||||
emitDiagnosticAt(decl, diag::found_candidate_type, decl->getOverloadSignatureType());
|
||||
emitDiagnosticAt(decl, diag::found_candidate_type, swift::TypeChecker::removeSelfParam(decl,decl->getInterfaceType()));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user