Files
swift-mirror/validation-test/IDE/crashers_fixed/rdar64265821.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +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 }
}
}