mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Every other declaration kind gets this for free in its interface type, but properties don't. Just add a bit, it's simple enough. rdar://problem/30289803
36 lines
588 B
Swift
36 lines
588 B
Swift
// Do not put any protocols in this file. It's part of the test that no
|
|
// protocols get serialized here.
|
|
|
|
enum TheEnum {
|
|
case A, B, C(MyClass)
|
|
}
|
|
|
|
enum EquatableEnum {
|
|
case A
|
|
}
|
|
|
|
|
|
@inline(never)
|
|
func useEquatable<T: Equatable>(_: T) {}
|
|
|
|
public func hasLocal() {
|
|
enum LocalEnum : Int {
|
|
case A, B
|
|
}
|
|
|
|
struct Wrapper {
|
|
enum LocalEnum : Int {
|
|
case A, B
|
|
}
|
|
}
|
|
|
|
// Make sure we can handle the == of local enums.
|
|
useEquatable(LocalEnum.A)
|
|
useEquatable(Wrapper.LocalEnum.A)
|
|
}
|
|
|
|
class Base {
|
|
class var conflict: Int { return 0 }
|
|
var conflict: Int { return 1 }
|
|
}
|