Skip to content

Commit 7aab0f1

Browse files
authored
fix: Circumvent the generated client warnings in the Xcode 15 beta (#146)
Circumvent the warning on generated client complaining about generic parameter shadowing generic parameter from outer scope with the same name
1 parent 7b7efe2 commit 7aab0f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/SwiftGraphQLCodegen/Generator/Interface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension InterfaceType {
3131
\(possibleTypes.selection(name: "Interfaces.\(name)", objects: objects))
3232
3333
extension Selection where T == Never, TypeLock == Never {
34-
public typealias \(name)<T> = Selection<T, Interfaces.\(name)>
34+
public typealias \(name)<W> = Selection<W, Interfaces.\(name)>
3535
}
3636
"""
3737
}

Sources/SwiftGraphQLCodegen/Generator/Object.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extension ObjectType {
3636
// Adds utility alias for the selection.
3737
code.append("""
3838
extension Selection where T == Never, TypeLock == Never {
39-
public typealias \(apiName)<T> = Selection<T, Objects.\(apiName)>
39+
public typealias \(apiName)<W> = Selection<W, Objects.\(apiName)>
4040
}
4141
""")
4242

Sources/SwiftGraphQLCodegen/Generator/Union.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extension UnionType {
2929
\(selections)
3030
3131
extension Selection where T == Never, TypeLock == Never {
32-
public typealias \(name)<T> = Selection<T, Unions.\(name)>
32+
public typealias \(name)<W> = Selection<W, Unions.\(name)>
3333
}
3434
"""
3535
}

0 commit comments

Comments
 (0)