mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
NCGenerics: restrict conditional Copyable reqs
It doesn't really make sense for a conditional conformance requirement for `Copyable` to depend on any other requirement other than other `Copyable` conformance requirements. resolves rdar://124967739
This commit is contained in:
@@ -98,7 +98,7 @@ extension Outer: Copyable {}
|
||||
extension Outer.InnerStruct: Copyable {}
|
||||
|
||||
extension Outer.InnerVariation1: Copyable {}
|
||||
extension Outer.InnerVariation2: Escapable {}
|
||||
extension Outer.InnerVariation2: Escapable where A: ~Copyable {}
|
||||
|
||||
extension Outer.InnerStruct {
|
||||
public func hello<T: ~Escapable>(_ t: T) {}
|
||||
|
||||
Reference in New Issue
Block a user