[ModuleInterface] Don't print setter access twice (#19239)

And assert from now on that people don't exclude DAK_AccessControl
without also excluding DAK_SetterAccess.
This commit is contained in:
Jordan Rose
2018-09-11 09:34:02 -07:00
committed by GitHub
parent ad0751edc6
commit 5fda0f3690
2 changed files with 11 additions and 1 deletions

View File

@@ -96,3 +96,9 @@ extension UFIProto {
// CHECK-NEXT: internal func ufiMethod(){{$}}
@usableFromInline internal func ufiMethod() {}
} // CHECK: {{^[}]$}}
// CHECK: extension PublicStruct {{[{]$}}
extension PublicStruct {
// CHECK: public private(set) static var secretlySettable: Int{{$}}
public private(set) static var secretlySettable: Int = 0
} // CHECK: {{^[}]$}}