mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
diagnose operators in extensions, just an oversight.
Swift SVN r898
This commit is contained in:
@@ -296,10 +296,9 @@ Decl *Parser::parseDeclExtension() {
|
||||
return 0;
|
||||
|
||||
// Parse the body as a series of decls.
|
||||
// FIXME: Need to diagnose invalid members at Sema time!
|
||||
SmallVector<Decl*, 8> MemberDecls;
|
||||
while (Tok.isNot(tok::r_brace) && Tok.isNot(tok::eof)) {
|
||||
if (parseDecl(MemberDecls, PD_Default))
|
||||
if (parseDecl(MemberDecls, PD_DisallowVar|PD_DisallowOperators))
|
||||
skipUntilDeclRBrace();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user