mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #27955 from AnthonyLatsis/bracestmt_cleanup
NFC: Solidify and tidy up the BraceStmt interface
This commit is contained in:
@@ -2673,7 +2673,7 @@ void ContextualFailure::tryComputedPropertyFixIts(Expr *expr) const {
|
||||
|
||||
if (auto TLCD = dyn_cast<TopLevelCodeDecl>(getDC())) {
|
||||
if (TLCD->getBody()->isImplicit()) {
|
||||
if (auto decl = TLCD->getBody()->getElement(0).dyn_cast<Decl *>()) {
|
||||
if (auto decl = TLCD->getBody()->getFirstElement().dyn_cast<Decl *>()) {
|
||||
if (auto binding = dyn_cast<PatternBindingDecl>(decl)) {
|
||||
PBD = binding;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user