1 
2 // REQUIRED_ARGS: -dip25
3 
4 /*
5 TEST_OUTPUT:
6 ---
7 fail_compilation/retref2.d(21): Error: function retref2.D.foo does not override any function, did you mean to override 'retref2.C.foo'?
8 fail_compilation/retref2.d(22): Error: function retref2.D.bar does not override any function, did you mean to override 'retref2.C.bar'?
9 ---
10 */
11 
12 
13 class C
14 {
15     ref int foo(ref int);
16     ref int bar();
17 }
18 
19 class D : C
20 {
21     override ref int foo(return ref int);
22     override ref int bar() return;
23 }
24