Skip to content

Commit 005b55d

Browse files
authored
Do not return null when a union's set of possible types is empty (#162)
1 parent b71c44b commit 005b55d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

spec/Section 4 -- Composition.md

-2
Original file line numberDiff line numberDiff line change
@@ -3638,8 +3638,6 @@ MergeUnionTypes(unions):
36383638
- For each {possibleType} in the possible types of {union}:
36393639
- If {possibleType} is not marked with `@inaccessible` or `@internal`:
36403640
- Add {possibleType} to {possibleTypes}.
3641-
- If {possibleTypes} is empty:
3642-
- Return {null}
36433641
- Return a new union with the name of {name}, description of {description}, and
36443642
possible types of {possibleTypes}.
36453643

0 commit comments

Comments
 (0)