File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -2233,9 +2233,6 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
2233
2233
}
2234
2234
2235
2235
void visitPatternBindingDecl (PatternBindingDecl *PBD) {
2236
- if (PBD->isBeingValidated ())
2237
- return ;
2238
-
2239
2236
// Check all the pattern/init pairs in the PBD.
2240
2237
validatePatternBindingEntries (TC, PBD);
2241
2238
@@ -2252,10 +2249,6 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
2252
2249
PBD->getPattern (i)->hasStorage () &&
2253
2250
!PBD->getPattern (i)->getType ()->hasError ()) {
2254
2251
2255
- // If we have a type-adjusting attribute (like ownership), apply it now.
2256
- if (auto var = PBD->getSingleVar ())
2257
- TC.checkTypeModifyingDeclAttributes (var);
2258
-
2259
2252
// Decide whether we should suppress default initialization.
2260
2253
//
2261
2254
// Note: Swift 4 had a bug where properties with a desugared optional
@@ -2282,7 +2275,6 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
2282
2275
// If we got a default initializer, install it and re-type-check it
2283
2276
// to make sure it is properly coerced to the pattern type.
2284
2277
PBD->setInit (i, defaultInit);
2285
- TC.typeCheckPatternBinding (PBD, i);
2286
2278
}
2287
2279
}
2288
2280
}
You can’t perform that action at this time.
0 commit comments