Skip to content

Commit b678171

Browse files
committed
Go a different route
1 parent 29a04d4 commit b678171

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5448,16 +5448,6 @@ ParserStatus Parser::parseGetSet(ParseDeclOptions Flags,
54485448
if (parsingLimitedSyntax)
54495449
return makeParserSuccess();
54505450

5451-
// In an extension, add a getter to prevent an "extensions must not contain
5452-
// stored properties" error.
5453-
if (Flags.contains(PD_InExtension)) {
5454-
auto getter = createAccessorFunc(
5455-
Tok.getLoc(), /*ValueNamePattern*/ nullptr, GenericParams, Indices,
5456-
StaticLoc, Flags, AccessorKind::Get, storage, this,
5457-
/*AccessorKeywordLoc*/ SourceLoc());
5458-
accessors.add(getter);
5459-
}
5460-
54615451
diagnose(accessors.RBLoc, diag::computed_property_no_accessors,
54625452
/*subscript*/ Indices != nullptr);
54635453
return makeParserError();

0 commit comments

Comments
 (0)