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 e434a18 commit 64e43f6Copy full SHA for 64e43f6
lib/Sema/TypeCheckAttr.cpp
@@ -2822,10 +2822,8 @@ static bool checkFunctionSignature(
2822
return false;
2823
2824
// Erase dynamic self types.
2825
- required = dyn_cast<AnyFunctionType>(
2826
- required->eraseDynamicSelfType()->getCanonicalType());
2827
- candidateFnTy = dyn_cast<AnyFunctionType>(
2828
- candidateFnTy->eraseDynamicSelfType()->getCanonicalType());
+ required = dyn_cast<AnyFunctionType>(required->getCanonicalType());
+ candidateFnTy = dyn_cast<AnyFunctionType>(candidateFnTy->getCanonicalType());
2829
2830
// Check that generic signatures match.
2831
auto requiredGenSig = required.getOptGenericSignature();
0 commit comments