mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
218 B
Swift
10 lines
218 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
enum Term<S> where S: Sequence, S.Iterator.Element == Term {
|
|
case Cons(head: String, tail: S)
|
|
}
|
|
|
|
func produce<S>(s: S) -> Term<S> {
|
|
return .Cons(head: "hi", tail: s)
|
|
}
|