mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
158 B
Swift
10 lines
158 B
Swift
// RUN: not %target-swift-frontend %s -typecheck
|
|
|
|
struct A<T> {
|
|
private var b: [T]
|
|
}
|
|
|
|
func foo(v: [Int]) {
|
|
let _ = A(b: v.sorted { $0 < $1 }.map{ $0 })
|
|
}
|