Files
codeql/swift/ql/test/extractor-tests/generated/expr/PackExpansionExpr/test.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())
}
}
*/