File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
lib/ASTGen/Sources/ASTGen Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1983,7 +1983,10 @@ extension ASTGenVisitor {
19831983 -> BridgedDeclAttribute ?
19841984 {
19851985 if let detail = node. detail {
1986- precondition ( detail. detail. keywordKind == . set, " only accepted modifier argument is '(set)' " )
1986+ guard detail. detail. rawText == " set " else {
1987+ // TODO: Diagnose
1988+ fatalError ( " only accepted modifier argument is '(set)' " )
1989+ }
19871990 return BridgedSetterAccessAttr . createParsed (
19881991 self . ctx,
19891992 range: self . generateSourceRange ( node) ,
Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ struct TestVars {
141141 var s : Int {
142142 get async throws { return 0 }
143143 }
144+
145+ private( set) var testPrivateSet = 1
144146}
145147
146148extension TestVars {
You can’t perform that action at this time.
0 commit comments