Skip to content

Commit cc5b4aa

Browse files
committed
Disallow Promise types in unions at the syntax level.
Fixes #740.
1 parent 15563ce commit cc5b4aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5417,8 +5417,9 @@ type.
54175417

54185418
<pre class="grammar" id="prod-SingleType">
54195419
SingleType :
5420-
NonAnyType
5420+
DistinguishableType
54215421
"any"
5422+
PromiseType ε
54225423
</pre>
54235424

54245425
<pre class="grammar" id="prod-UnionType">
@@ -5428,7 +5429,7 @@ type.
54285429

54295430
<pre class="grammar" id="prod-UnionMemberType">
54305431
UnionMemberType :
5431-
ExtendedAttributeList NonAnyType
5432+
ExtendedAttributeList DistinguishableType
54325433
UnionType Null
54335434
</pre>
54345435

@@ -5438,9 +5439,8 @@ type.
54385439
ε
54395440
</pre>
54405441

5441-
<pre class="grammar" id="prod-NonAnyType">
5442-
NonAnyType :
5443-
PromiseType ε
5442+
<pre class="grammar" id="prod-DistinguishableType">
5443+
DistinguishableType :
54445444
PrimitiveType Null
54455445
StringType Null
54465446
identifier Null
@@ -6228,7 +6228,7 @@ and joining them with the string "<code>Or</code>".
62286228

62296229
<div data-fill-with="grammar-UnionMemberTypes"></div>
62306230

6231-
<div data-fill-with="grammar-NonAnyType"></div>
6231+
<div data-fill-with="grammar-DistinguishableType"></div>
62326232

62336233

62346234
<h4 id="idl-annotated-types">Annotated types</h4>

0 commit comments

Comments
 (0)