Skip to content

Commit d287a43

Browse files
IvanGoncharovleebyron
authored andcommitted
Forbid to define duplicated member types in Union (#266)
1 parent e47458f commit d287a43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/Section 3 -- Type System.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ Union types have the potential to be invalid if incorrectly defined.
752752
1. The member types of a Union type must all be Object base types;
753753
Scalar, Interface and Union types may not be member types of a Union.
754754
Similarly, wrapping types may not be member types of a Union.
755-
2. A Union type must define one or more member types.
755+
2. A Union type must define one or more unique member types.
756756

757757
### Enums
758758

0 commit comments

Comments
 (0)