Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions spec/Section 6 -- Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,21 @@ the {objectValue}.

ResolveAbstractType(abstractType, objectValue):

- Return the result of calling the internal method provided by the type system
for determining the Object type of {abstractType} given the value
{objectValue}.
- Let {resolvedType} be the result of calling the internal method provided by
the type system for determining the Object type of {abstractType} given the
value {objectValue}.
- Assert {resolvedType} is an Object type.
- Assert {IsSubType(abstractType, resolvedType)}.
- Return {resolvedType}.

IsSubType(abstractType, objectType):

- If {abstractType} is an Interface type.
- If {objectType} implements {abstractType}, return {true}.
- Otherwise, return {false}.
- If {abstractType} is a Union type.
- If {objectType} is a member type of {abstractType}, return {true}.
- Otherwise, return {false}.

**Merging Selection Sets**

Expand Down