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.
2 parents baca62f + 0ff976e commit e12f4efCopy full SHA for e12f4ef
lib/Sema/TypeCheckConcurrency.cpp
@@ -1575,6 +1575,11 @@ namespace {
1575
1576
// is it an access to a property?
1577
if (isPropOrSubscript(decl)) {
1578
+ // we assume let-bound properties are taken care of elsewhere,
1579
+ // since they are never implicitly async.
1580
+ assert(!isa<VarDecl>(decl) || cast<VarDecl>(decl)->isLet() == false
1581
+ && "unexpected let-bound property; never implicitly async!");
1582
+
1583
if (auto declRef = dyn_cast_or_null<DeclRefExpr>(context)) {
1584
if (usageEnv(declRef) == VarRefUseEnv::Read) {
1585
0 commit comments