[Bug 25630] New: "The following use of overloading however is inv..."

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25630

            Bug ID: 25630
           Summary: "The following use of overloading however is inv..."
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: nbarth+w3bugzilla@google.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org

http://heycam.github.io/webidl/#idl-overloading

This is outdated:

[[
The following use of overloading however is invalid:

IDL
interface B {
  void f(DOMString x);
  void f(float x);
};
since DOMString and float are not distinguishable.
]]

...since DOMStrings and floats (numerics) are now distinguishable.

This can be corrected by replacing "DOMString" with "long":

[[
The following use of overloading however is invalid:

IDL
interface B {
  void f(long x);
  void f(float x);
};
since long and float are not distinguishable.
]]

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 9 May 2014 08:15:02 UTC