mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If the type has unbound generic parameter, we cannot substitute types for member decls. rdar://problem/48896424
18 lines
267 B
Swift
18 lines
267 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
|
|
|
|
class Foo<T> {
|
|
}
|
|
|
|
extension Foo where T: Comparable {
|
|
func foo() {}
|
|
}
|
|
|
|
protocol P {
|
|
typealias alias = Foo
|
|
}
|
|
protocol P {}
|
|
|
|
func Test() {
|
|
P.alias.#^COMPLETE^#
|
|
}
|