Skip to content

Commit 6495218

Browse files
committed
Fix doTypesOverlap when seeing if object overlaps with interface
It's possible here that typeA is also an interface
1 parent 13a95b0 commit 6495218

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/GraphQL/Utilities/TypeComparators.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,7 @@ func doTypesOverlap(
171171
}
172172
}
173173

174-
if
175-
let typeA = typeA as? GraphQLObjectType,
176-
let typeB = typeB as? GraphQLAbstractType
177-
{
174+
if let typeB = typeB as? GraphQLAbstractType {
178175
// Determine if the former type is a possible concrete type of the latter.
179176
return schema.isSubType(
180177
abstractType: typeB,

0 commit comments

Comments
 (0)