mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Usually this happens directly, through some use of the class and its conformance. However, if a conformance is /only/ used to satisfy an associated type, we seem to bypass the step that actually infers selector names for accessors, even though we do it successfully for methods. Fix this by making sure the accessor decls are validated when a property is, something that normal uses of a property probably have to do anyway. Also, simplify inferObjCName by assuming/asserting that it is only used on things that are already marked @objc. https://bugs.swift.org/browse/SR-6944
8 lines
121 B
Swift
8 lines
121 B
Swift
class Test: TestProto {
|
|
var swiftFoo: Int32 { return 0 }
|
|
var swiftBar: Int32 {
|
|
get { return 0 }
|
|
set {}
|
|
}
|
|
}
|