We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5f6077 commit d1936f3Copy full SHA for d1936f3
1 file changed
tests/source/storageclass.d
@@ -28,17 +28,17 @@ void _kick(Cat, out string noise)
28
noise = "meow";
29
}
30
31
-ref string pet(virtual!Animal, ref string noise);
+ref string pet(virtual!Animal, return ref string noise);
32
33
@method
34
-ref string _pet(Dog, ref string noise)
+ref string _pet(Dog, return ref string noise)
35
{
36
noise = "woof";
37
return noise;
38
39
40
@method("pet")
41
-ref string petCat(Cat, ref string noise)
+ref string petCat(Cat, return ref string noise)
42
43
noise = "purr";
44
0 commit comments