mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
23 lines
459 B
Swift
23 lines
459 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE_1 -source-filename=%s
|
|
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE_2 -source-filename=%s
|
|
|
|
// https://github.com/apple/swift/issues/51504
|
|
|
|
struct MyStruct<T> {
|
|
}
|
|
|
|
protocol MyProto {
|
|
associatedtype Assoc
|
|
func foo(x: Assoc) -> Assoc
|
|
}
|
|
|
|
#if false
|
|
extension MyStruct {
|
|
#^COMPLETE_1^#
|
|
}
|
|
|
|
extension MyStruct: MyProto {
|
|
#^COMPLETE_2^#
|
|
}
|
|
#endif
|