Files
swift-mirror/test/Serialization/Inputs/inherited-initializer-base.swift
Jordan Rose cde35430c6 Fix ParameterList::clone to handle deserialized defaults arguments. (#7156)
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
2017-01-31 16:30:01 -08:00

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()) {}
}