Files
swift-mirror/test/Serialization/opaque_circularity.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
285 B
Swift

// RUN: %target-swiftc_driver -Xfrontend -disable-availability-checking -emit-module %s
// rdar://problem/49829836
public protocol P {
associatedtype Assoc: Collection
func foo() -> Assoc
}
public struct S : P {
public func foo() -> some Collection {
return [1,2,3]
}
}