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 @@ -150,6 +150,8 @@ struct TestVars {
150150 var s : Int {
151151 get async throws { return 0 }
152152 }
153+
154+ private( set) var testPrivateSet = 1
153155}
154156
155157extension TestVars {
You can’t perform that action at this time.
0 commit comments