Skip to content

Commit 9a739b5

Browse files
authored
Forbid overloading operations with Promise and non-Promise return types
Fixes the important part of https://www.w3.org/Bugs/Public/show_bug.cgi?id=25051. See #879 for a followup on general issues with the "return type" concept.
1 parent 0c417ea commit 9a739b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3329,6 +3329,11 @@ that overloaded operations and constructors can be
33293329
specified to take, and in order to describe these restrictions,
33303330
the notion of an <em>effective overload set</em> is used.
33313331

3332+
A set of overloaded [=operations=] must either:
3333+
3334+
* contain no [=operations=] whose [=return type=] is a [=promise type=];
3335+
* only contain [=operations=] whose [=return type=] is a [=promise type=].
3336+
33323337
[=Operations=] must not be overloaded across
33333338
[=interface=],
33343339
[=partial interface=],

0 commit comments

Comments
 (0)