mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -74,7 +74,7 @@ public:
|
||||
if (auto *DRE = dyn_cast<DeclRefExpr>(expr)) {
|
||||
auto *decl = DRE->getDecl();
|
||||
|
||||
if (auto type = CS.getTypeIfAvailable(DRE->getDecl())) {
|
||||
if (auto type = CS.getTypeIfAvailable(decl)) {
|
||||
auto &ctx = CS.getASTContext();
|
||||
// If this is not one of the closure parameters which
|
||||
// is inferrable from the body, let's replace type
|
||||
|
||||
Reference in New Issue
Block a user