Re: [heycam/webidl] Should nullable optional dictionary argument have a default value? (#774)

>  `void setPositionState(optional MediaPositionState? state);`

This is not valid IDL.  This is mentioned in the note under https://heycam.github.io/webidl/#idl-nullable-type and in the following normative text under https://heycam.github.io/webidl/#idl-operations>:

> If the Type of an operation argument is an identifier followed by ?, then the identifier must identify an interface, enumeration, callback function, callback interface, or typedef.

which explicitly excludes "dictionary" from the list, and the following paragraph, which says:

> If the operation argument type, after resolving typedefs, is a nullable type, its inner type must not be a dictionary type.

-- 
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/774#issuecomment-524915557

Received on Monday, 26 August 2019 15:51:58 UTC