mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
18 lines
370 B
Swift
18 lines
370 B
Swift
func makeTuple<each T>(_ t: repeat each T) -> (repeat each T) {
|
|
return (repeat each t)
|
|
}
|
|
let _ = makeTuple("A", 2)
|
|
|
|
|
|
/*
|
|
The following shows an example of MaterizliePackExpr which only compiles on macOS 14
|
|
struct Packs<each C> {
|
|
func a() -> (repeat each C) {
|
|
fatalError()
|
|
}
|
|
public func b() -> (repeat Optional<each C>) {
|
|
return (repeat each a())
|
|
}
|
|
}
|
|
*/
|