Skip to content

Commit d1936f3

Browse files
committed
fix storageclass test, needs return ref
1 parent b5f6077 commit d1936f3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/source/storageclass.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ void _kick(Cat, out string noise)
2828
noise = "meow";
2929
}
3030

31-
ref string pet(virtual!Animal, ref string noise);
31+
ref string pet(virtual!Animal, return ref string noise);
3232

3333
@method
34-
ref string _pet(Dog, ref string noise)
34+
ref string _pet(Dog, return ref string noise)
3535
{
3636
noise = "woof";
3737
return noise;
3838
}
3939

4040
@method("pet")
41-
ref string petCat(Cat, ref string noise)
41+
ref string petCat(Cat, return ref string noise)
4242
{
4343
noise = "purr";
4444
return noise;

0 commit comments

Comments
 (0)