Let protocols define getter requirements for @_staticExclusiveOnly types

This commit is contained in:
Alejandro Alonso
2024-07-02 10:35:11 -07:00
parent 3ccbcfe8cd
commit 2f0750a450
3 changed files with 43 additions and 4 deletions

View File

@@ -1995,6 +1995,8 @@ ERROR(attr_static_exclusive_only_let_only_param,none,
"parameter of type %0 must be declared as either 'borrowing' or 'consuming'", (Type))
ERROR(attr_static_exclusive_only_mutating,none,
"type %0 cannot have mutating function %1", (Type, ValueDecl *))
ERROR(attr_static_exclusive_no_setters,none,
"varaible of type %0 must not have a setter", (Type))
// @extractConstantsFromMembers
ERROR(attr_extractConstantsFromMembers_experimental,none,