[SR-11958] Operator declarations can have an empty inheritance list #54378
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
parser
Area → compiler: The legacy C++ parser
source compatibility
Additional Detail from JIRA
md5: d52ce8738765ead76656f6e5c64755cf
Issue Description:
Parser::parseDeclOperatorImpl()
accepts code like this:That is, there is a colon but no list of identifiers after it.
The parser should probably should reject this code, but if anyone has written this anywhere, that would break source compatibility.
The text was updated successfully, but these errors were encountered: