From 85dbd1467b0e5acfbbe7045891ad5001bfae183b Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Fri, 28 Apr 2017 02:51:07 +0300 Subject: [PATCH] Forbid to define duplicated member types in Union (#266) --- spec/Section 3 -- Type System.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/Section 3 -- Type System.md b/spec/Section 3 -- Type System.md index 6d8fb8c88..85acd3f9a 100644 --- a/spec/Section 3 -- Type System.md +++ b/spec/Section 3 -- Type System.md @@ -752,7 +752,7 @@ Union types have the potential to be invalid if incorrectly defined. 1. The member types of a Union type must all be Object base types; Scalar, Interface and Union types may not be member types of a Union. Similarly, wrapping types may not be member types of a Union. -2. A Union type must define one or more member types. +2. A Union type must define one or more unique member types. ### Enums