summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/webidl2/test/syntax/idl/overloading.widl
blob: ef1288a887763dd78947de6b8786c00539474e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
interface A {
  // ...
};

interface B {
  // ...
};

interface C {
  void f(A x);
  void f(B x);
};

interface A {
  /* f1 */ void f(DOMString a);
  /* f2 */ void f([AllowAny] DOMString a, DOMString b, float... c);
  /* f3 */ void f();
  /* f4 */ void f(long a, DOMString b, optional DOMString c, float... d);
};