Re: [heycam/webidl] Where does it say that a nullable record<> cannot be the type of a dictionary member? (#295)

I think we have the opposite bug: records are simply not allowed as dictionary members:

> Each dictionary member (matching DictionaryMember) is specified as a type (matching Type) followed by an identifier (given by an identifier token following the type). The identifier is the key name of the key–value pair. If the Type is an identifier followed by ?, then the identifier must identify an interface, enumeration, callback function or typedef. If the dictionary member type is an identifier not followed by ?, then the identifier must identify any one of those definitions or a dictionary. -- https://heycam.github.io/webidl/#idl-dictionaries

"the identifier must identify an interface, enumeration, callback function or typedef" doesn't allow records (except via typedefs, of course), and neither does "any one of those definitions or a dictionary".

We should add "or a record" to the end of the last sentence?

-- 
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/issues/295#issuecomment-277313601

Received on Friday, 3 February 2017 17:46:04 UTC