mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
232 B
Swift
16 lines
232 B
Swift
// RUN: %target-swift-frontend -emit-sil %s
|
|
|
|
public class C {
|
|
public func foo() -> Self {
|
|
let arr = [self]
|
|
|
|
bar(arr)
|
|
|
|
return self
|
|
}
|
|
}
|
|
|
|
@_transparent public func bar<T : Sequence>(_ xs: T) {
|
|
for x in xs { _ = x }
|
|
}
|