Bug 16720 - Strange ordering in 4.2.25. Union types
Strange ordering in 4.2.25. Union types
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL
unspecified
All All
: P2 normal
: ---
Assigned To: Cameron McCormack
public-webapps-bugzilla
http://dev.w3.org/2006/webapi/WebIDL/...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-13 09:36 UTC by Ms2ger
Modified: 2012-04-14 07:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ms2ger 2012-04-13 09:36:24 UTC
The algorithm has:

3. If V is any other platform object, then: ...
4. If V is a platform array object, a native Array object, or a
   platform object that supports indexed properties, then: ...

The "any other" in 3. seems to suggest that 3. and 4. should be swapped.
Comment 1 Cameron McCormack 2012-04-14 03:18:13 UTC
I swapped 3 and 4 recently (so that

  void f(SomeInterfaceWithIndexedProperties x);
  void f(sequence<Something> x);

would select the former if an object of that type were passed in) but forgot to fix up the wording.
Comment 2 Ms2ger 2012-04-14 07:13:25 UTC
OK, thanks.