mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Parse] Add fix-its for empty Swift 2 operator decl braces. (#4309)
And improve the error message for non-empty braces; if we're going to ignore the contents, we should at least point you in the right direction for Swift 3. rdar://problem/27576922
This commit is contained in:
@@ -647,7 +647,8 @@ private:
|
||||
Info.ID == diag::any_as_anyobject_fixit.ID ||
|
||||
Info.ID == diag::deprecated_protocol_composition.ID ||
|
||||
Info.ID == diag::deprecated_protocol_composition_single.ID ||
|
||||
Info.ID == diag::deprecated_any_composition.ID)
|
||||
Info.ID == diag::deprecated_any_composition.ID ||
|
||||
Info.ID == diag::deprecated_operator_body.ID)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user