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 2a2deea commit 0eb32f6Copy full SHA for 0eb32f6
lib/AST/LifetimeDependence.cpp
@@ -1274,6 +1274,7 @@ class LifetimeDependenceChecker {
1274
break;
1275
case AccessorKind::Set: {
1276
const unsigned newValIdx = 0;
1277
+ auto *afd = cast<AbstractFunctionDecl>(decl);
1278
auto *param = afd->getParameters()->get(newValIdx);
1279
Type paramTypeInContext =
1280
afd->mapTypeIntoContext(param->getInterfaceType());
@@ -1354,6 +1355,7 @@ class LifetimeDependenceChecker {
1354
1355
}
1356
1357
1358
1359
// Either a Get or Modify without any wrapped accessor. Handle these like a
1360
// read of the stored property.
1361
return inferLifetimeDependenceKind(
0 commit comments