Re: [heycam/webidl] Reduce the restrictions on members whose names match auto-generated properties (#726)

Ms2ger commented on this pull request.



> -named "<code>entries</code>", "<code>forEach</code>",
-"<code>has</code>", "<code>keys</code>",
-"<code>size</code>", or "<code>values</code>",
-or have any [=inherited interfaces=]
-that have [=members=] with these names.
-Read–write setlike interfaces must not
-have any [=attributes=]
-or [=constants=] named
-"<code>add</code>", "<code>clear</code>",
-or "<code>delete</code>", or have any [=inherited interfaces=]
-that have [=attributes=] or [=constants=] with these names.
-
-Note: Operations named "<code>add</code>", "<code>clear</code>",
-or "<code>delete</code>" are allowed on read–write setlike
+Setlike interfaces and their [=inherited interfaces=] must not have any [=regular operations=],
+[=regular attributes=] or [=constants=] named

This forbids
```webidl
interface A { void entries(); };
interface B : A { readonly setlike<long>; };
```
but not
```webidl
interface A { readonly setlike<long>; };
interface B : A { void entries(); };
```

Should it?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/726#pullrequestreview-237141193

Received on Tuesday, 14 May 2019 09:55:43 UTC