Skip to content

Commit ef75cf7

Browse files
authored
Merge pull request swiftlang#36534 from ahoppen/pr/rdar64265821
Add test case for rdar://64265821
2 parents 8f974c1 + 86e5e7d commit ef75cf7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
2+
3+
struct AnyPublisher<T> {
4+
public func sink(_: @escaping ((T) -> Void)) -> Void { fatalError() }
5+
}
6+
class MyClass {
7+
func fetchFile<T>(with: T) -> AnyPublisher<T> { fatalError() }
8+
init() {
9+
fetchFile(with: #^COMPLETE^#42)
10+
.sink { a in var b = a }
11+
}
12+
}

0 commit comments

Comments
 (0)