Skip to content

Commit bafa86f

Browse files
committed
---
yaml --- r: 349498 b: refs/heads/master-next c: 856244c h: refs/heads/master
1 parent b0d4904 commit bafa86f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: 101808120fc3ceb86298be5b26ced024cd3c8dab
3+
refs/heads/master-next: 856244c89036c962eacf93e6e05d5e0c35f6de77
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/test/IDE/complete_name_lookup.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=FOO_OBJECT_DOT_1 | %FileCheck %s -check-prefix=FOO_OBJECT_DOT
22
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=BAR_OBJECT_DOT_1 | %FileCheck %s -check-prefix=BAR_OBJECT_DOT
3+
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=CATCHSEQUENCE_DOT | %FileCheck %s -check-prefix=CATCHSEQUENCE_DOT
34

45
protocol FooBaseProtocol {
56
var instanceProperty: Int { get }
@@ -35,3 +36,21 @@ func test(a: BarStruct) {
3536
a.#^BAR_OBJECT_DOT_1^#
3637
}
3738

39+
protocol ObservableConvertibleType {
40+
associatedtype T
41+
}
42+
class Observable<T> : ObservableConvertibleType {}
43+
class CatchSequence<S: Sequence>: Observable<S.Element.T> where S.Element: ObservableConvertibleType {}
44+
45+
extension ObservableConvertibleType {
46+
static func catchError() -> Observable<T> {
47+
return CatchSequence.#^CATCHSEQUENCE_DOT^#
48+
}
49+
}
50+
// CATCHSEQUENCE_DOT: Begin completions
51+
// CATCHSEQUENCE_DOT-DAG: Keyword[self]/CurrNominal: self[#CatchSequence<_>.Type#]; name=self
52+
// CATCHSEQUENCE_DOT-DAG: Keyword/CurrNominal: Type[#CatchSequence<_>.Type#]; name=Type
53+
// CATCHSEQUENCE_DOT-DAG: Decl[Constructor]/CurrNominal: init()[#CatchSequence<_>#]; name=init()
54+
// CATCHSEQUENCE_DOT-DAG: Decl[StaticMethod]/Super: catchError()[#Observable<CatchSequence<_>.T>#]; name=catchError()
55+
// CATCHSEQUENCE_DOT-DAG: Decl[TypeAlias]/Super: T[#T#]; name=T
56+
// CATCHSEQUENCE_DOT: End completions

0 commit comments

Comments
 (0)