- From: Darien Maillet Valentine <notifications@github.com>
- Date: Thu, 09 Mar 2023 01:53:37 -0800
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 9 March 2023 09:53:50 UTC
Promises are [indistinguishable](https://webidl.spec.whatwg.org/#example-distinguishability-promises) and thus cannot be members of unions. This follows from the fact that e.g. `3` is a valid ECMAScript input for `Promise<byte>` — it’s like `await 3` or `Promise.resolve(3)`. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/issues/1278#issuecomment-1461691793 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/issues/1278/1461691793@github.com>
Received on Thursday, 9 March 2023 09:53:50 UTC