mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The name-lookup behavior that avoids looking for members of a nominal type or extension therefore when resolving the inheritance clause is now handled by UnqualifiedLookup, so remove it from the type checker itself. Fixes rdar://problem/39130543.
23 lines
285 B
Swift
23 lines
285 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
|
|
protocol P20 { }
|
|
|
|
protocol P21b {
|
|
associatedtype T
|
|
|
|
func foo(_: (T?) -> Void)
|
|
}
|
|
|
|
protocol P21a {
|
|
associatedtype T
|
|
|
|
func bar(_: ([T]) -> Void)
|
|
}
|
|
|
|
extension P21b where Self: P21a, T: P20 {
|
|
func foo(_: (T?) -> Void) {
|
|
bar { _ in }
|
|
}
|
|
}
|