mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
It was checking the wrong predicate, and therefore failing to mark inherited default arguments as actually being inherited. While here, explicitly clear out default arguments from non-inherited cloned parameter lists. I don't think this case can come up today, but it's better to be correct when we do hit it. rdar://problem/30167924
11 lines
179 B
Swift
11 lines
179 B
Swift
open class Base {
|
|
public init(_ value: Int = 0) {}
|
|
}
|
|
|
|
public protocol Initializable {
|
|
init()
|
|
}
|
|
open class GenericBase<T: Initializable> {
|
|
public init(_ value: T = T()) {}
|
|
}
|