]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/test21008.d
d: Merge upstream dmd, druntime 09faa4eacd, phobos 13ef27a56.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test21008.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test21008.d(110): Error: function `test21008.C.after` circular reference to class `C`
5 fail_compilation/test21008.d(117): Error: need `this` for `toString` of type `string()`
6 fail_compilation/test21008.d(117): Error: need `this` for `toHash` of type `nothrow @trusted $?:32=uint|64=ulong$()`
7 fail_compilation/test21008.d(117): Error: function `object.Object.opCmp(Object o)` is not callable using argument types `()`
8 fail_compilation/test21008.d(117): too few arguments, expected 1, got 0
9 fail_compilation/test21008.d(117): Error: function `object.Object.opEquals(Object o)` is not callable using argument types `()`
10 fail_compilation/test21008.d(117): too few arguments, expected 1, got 0
11 fail_compilation/test21008.d(117): Error: `Monitor` has no effect
12 fail_compilation/test21008.d(117): Error: function `object.Object.factory(string classname)` is not callable using argument types `()`
13 fail_compilation/test21008.d(117): too few arguments, expected 1, got 0
14 fail_compilation/test21008.d(105): called from here: `handleMiddlewareAnnotation()`
15 ---
16 */
17
18 // https://issues.dlang.org/show_bug.cgi?id=21008
19
20 #line 100
21
22 class Base
23 {
24 bool after();
25
26 mixin(handleMiddlewareAnnotation);
27 }
28
29 class C : Base
30 {
31 override bool after();
32 }
33
34 string handleMiddlewareAnnotation()
35 {
36 foreach (member; __traits(allMembers, C))
37 {
38 __traits(getMember, C, member);
39 }
40 }