Files
swift-mirror/validation-test/compiler_crashers_fixed/0169-issue-50711.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

20 lines
433 B
Swift

// RUN: %target-swift-frontend -emit-sil %s
// https://github.com/apple/swift/issues/50711
protocol SignalInterface {
associatedtype OutputValue
}
class Signal<OV>: SignalInterface {
typealias OutputValue = OV
}
extension Signal {
func foo<U>(_: U) -> SignalChannel<[U], Signal<Array<U>>>
where OutputValue == Optional<U> { return SignalChannel() }
}
struct SignalChannel<OutputValue, Output: Signal<OutputValue>> { }