| 1 |
void f(int x, Object y); |
| 2 |
|
| 3 |
void g() |
| 4 |
{ |
| 5 |
Object o; |
| 6 |
f(o, o, 404); |
| 7 |
f(5, 6, 404); |
| 8 |
} |
| 9 |
|
| 10 |
/* |
| 11 |
TEST_OUTPUT: |
| 12 |
--- |
| 13 |
fail_compilation/bug16165.d(6): Error: function `f` is not callable using argument types `(Object, Object, int)` |
| 14 |
fail_compilation/bug16165.d(6): cannot pass argument `o` of type `object.Object` to parameter `int x` |
| 15 |
fail_compilation/bug16165.d(1): `bug16165.f(int x, Object y)` declared here |
| 16 |
fail_compilation/bug16165.d(7): Error: function `f` is not callable using argument types `(int, int, int)` |
| 17 |
fail_compilation/bug16165.d(7): cannot pass argument `6` of type `int` to parameter `Object y` |
| 18 |
fail_compilation/bug16165.d(1): `bug16165.f(int x, Object y)` declared here |
| 19 |
--- |
| 20 |
*/ |