mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Custom attributes were being skipped as their attribute name started with a "_". Underscored attributes are typically unstable and thus shouldn't be printed, but "_" is not being used for that purpose in the case of "_custom". Rather than checking for "_" or "__", just use `UserInaccessible`. This property is used for attributes that shouldn't be shown to users in eg. completion/printing/etc. Resolves rdar://99029554.
7 lines
221 B
Swift
7 lines
221 B
Swift
public struct SomeType {
|
|
public private(set) var privateSetter: Int
|
|
}
|
|
// CHECK: public private(set) var privateSetter: Int
|
|
|
|
// RUN: %target-swift-ide-test -print-swift-file-interface -source-filename %s | %FileCheck %s
|