Files
swift-mirror/validation-test/IDE/crashers_2_fixed/rdar64265821.swift
Alex Hoppen 86e5e7dbf3 Add test case for rdar://64265821
rdar://64265821 [SR-12985] appears to have been fixed already. Let’s add a test case for it.
2021-03-22 14:02:11 +01:00

13 lines
365 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
struct AnyPublisher<T> {
public func sink(_: @escaping ((T) -> Void)) -> Void { fatalError() }
}
class MyClass {
func fetchFile<T>(with: T) -> AnyPublisher<T> { fatalError() }
init() {
fetchFile(with: #^COMPLETE^#42)
.sink { a in var b = a }
}
}