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 {
1983
1983
-> BridgedDeclAttribute ?
1984
1984
{
1985
1985
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
+ }
1987
1990
return BridgedSetterAccessAttr . createParsed (
1988
1991
self . ctx,
1989
1992
range: self . generateSourceRange ( node) ,
Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ struct TestVars {
150
150
var s : Int {
151
151
get async throws { return 0 }
152
152
}
153
+
154
+ private( set) var testPrivateSet = 1
153
155
}
154
156
155
157
extension TestVars {
You can’t perform that action at this time.
0 commit comments