Merge pull request #23500 from theblixguy/fix/SR-9267

[CSDiag] Improving the fix-it for defining computed variables
This commit is contained in:
Pavel Yaskevich
2019-03-25 11:02:45 -07:00
committed by GitHub
7 changed files with 107 additions and 6 deletions

View File

@@ -1522,6 +1522,8 @@ ERROR(extension_specialization,none,
"type %0 with constraints specified by a 'where' clause", (Identifier))
ERROR(extension_stored_property,none,
"extensions must not contain stored properties", ())
NOTE(extension_stored_property_fixit,none,
"Remove '=' to make %0 a computed property", (Identifier))
ERROR(extension_nongeneric_trailing_where,none,
"trailing 'where' clause for extension of non-generic type %0",
(DeclName))