mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is a bit of a hack to dodge an assertion. In essence, it's a harmless hack, but we'd like to make the handling of optional and unavailable requirements more rigorous.
10 lines
155 B
Swift
10 lines
155 B
Swift
import Foundation
|
|
|
|
@objc public protocol Proto {
|
|
@objc optional func badness()
|
|
}
|
|
|
|
public class Foo: Proto {
|
|
public var badness: Int = 0 // unrelated
|
|
}
|