mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ParseDecl] Disallow init accessor decl outside of primary declaration
This commit is contained in:
@@ -2156,6 +2156,10 @@ ERROR(init_accessor_is_not_on_property,none,
|
||||
"init accessors could only be associated with properties",
|
||||
())
|
||||
|
||||
ERROR(init_accessor_is_not_in_the_primary_declaration,none,
|
||||
"init accessors could only be declared in the primary declaration",
|
||||
())
|
||||
|
||||
ERROR(missing_storage_restrictions_attr_label,none,
|
||||
"missing label in @storageRestrictions attribute", ())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user