d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / bug16165.d
blobca9879733ce2cbc0d8bff20db8b96cfc38790617
1 void f(int x, Object y);
3 void g()
5 Object o;
6 f(o, o, 404);
7 f(5, 6, 404);
11 TEST_OUTPUT:
12 ---
13 fail_compilation/bug16165.d(6): Error: function `bug16165.f(int x, Object y)` 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(7): Error: function `bug16165.f(int x, Object y)` is not callable using argument types `(int, int, int)`
16 fail_compilation/bug16165.d(7): cannot pass argument `6` of type `int` to parameter `Object y`
17 ---