Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail53.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail53.d(26): Error: function `object.Object.opEquals(Object o)` is not callable using argument types `(int)`
5 fail_compilation/fail53.d(26): cannot pass argument `i` of type `int` to parameter `Object o`
6 ---
7 */
8
9 // $HeadURL$
10 // $Date$
11 // $Author$
12
13 // @author@ Thomas Kuehne <[email protected]>
14 // @date@ 2005-01-22
15 // @uri@ news:[email protected]
16 // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2741
17
18 // __DSTRESS_ELINE__ 17
19
20 module dstress.nocompile.bug_mtype_507_A;
21
22 int main()
23 {
24 Object o;
25 int i;
26 if (i == o)
27 {
28 return -1;
29 }
30 return 0;
31 }