This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16720 - Strange ordering in 4.2.25. Union types
Summary: Strange ordering in 4.2.25. Union types
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL: http://dev.w3.org/2006/webapi/WebIDL/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-13 09:36 UTC by Ms2ger
Modified: 2012-04-14 07:13 UTC (History)
2 users (show)

See Also:


Attachments

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.