Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0194-rdar50309503.swift
Joe Groff cec9e9e33a Opaque types require a newer Swift runtime.
Check the availability of decls that declare an opaque return type to ensure they deploy to a
runtime that supports opaque types.

rdar://problem/50731151
2019-05-15 11:39:53 -07:00

15 lines
274 B
Swift

// RUN: %target-swift-frontend -disable-availability-checking -emit-ir -o /dev/null %s
protocol P {
associatedtype AT
func foo() -> AT
}
struct X<C1: Collection, C2: Collection, T>: P
where C1.Element == C2.Element
{
func foo() -> some P {
return self
}
}