Skip to content

Commit 6b60121

Browse files
author
Marc Rasi
committed
---
yaml --- r: 341623 b: refs/heads/rxwei-patch-1 c: 64e43f6 h: refs/heads/master i: 341621: 0d43d7a 341619: d42d1e0 341615: 7823a98
1 parent a7a888a commit 6b60121

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: e434a189e9b8347dfcd7302a4700ffa7da67c33a
1018+
refs/heads/rxwei-patch-1: 64e43f6da65af4e33975d4b1ded18388658cfc4e
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/lib/Sema/TypeCheckAttr.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2822,10 +2822,8 @@ static bool checkFunctionSignature(
28222822
return false;
28232823

28242824
// Erase dynamic self types.
2825-
required = dyn_cast<AnyFunctionType>(
2826-
required->eraseDynamicSelfType()->getCanonicalType());
2827-
candidateFnTy = dyn_cast<AnyFunctionType>(
2828-
candidateFnTy->eraseDynamicSelfType()->getCanonicalType());
2825+
required = dyn_cast<AnyFunctionType>(required->getCanonicalType());
2826+
candidateFnTy = dyn_cast<AnyFunctionType>(candidateFnTy->getCanonicalType());
28292827

28302828
// Check that generic signatures match.
28312829
auto requiredGenSig = required.getOptGenericSignature();

0 commit comments

Comments
 (0)