mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
315 B
Swift
15 lines
315 B
Swift
public protocol Prot {}
|
|
|
|
public struct Yoda<
|
|
Base : IteratorProtocol
|
|
> : Prot {
|
|
public func down<U>(
|
|
p: Array<U>
|
|
) -> Array<U> {
|
|
return p
|
|
}
|
|
}
|
|
|
|
// RUN: %target-swift-ide-test -print-swift-file-interface -print-original-source -source-filename %s > %t.out
|
|
// RUN: diff -u %s.result %t.out
|