diff --git a/source/dub/internal/vibecompat/data/serialization.d b/source/dub/internal/vibecompat/data/serialization.d index 0f9b7c4..8216310 100644 --- a/source/dub/internal/vibecompat/data/serialization.d +++ b/source/dub/internal/vibecompat/data/serialization.d @@ -1230,7 +1230,7 @@ static struct S { int i; - ref int foo() { return i; } + ref int foo() return { return i; } } static assert(__traits(compiles, { S().serializeToJson(); })); diff --git a/source/dub/internal/vibecompat/data/utils.d b/source/dub/internal/vibecompat/data/utils.d index ace6a76..fd75584 100644 --- a/source/dub/internal/vibecompat/data/utils.d +++ b/source/dub/internal/vibecompat/data/utils.d @@ -194,7 +194,7 @@ // write-only property (NO) @property void p3(int value) { privateJ = value; } // ref returning property (OK) - @property ref int p4() { return i; } + @property ref int p4() return { return i; } // parameter-less template property (OK) @property ref int p5()() { return i; } // not treated as a property by DMD, so not a field @@ -204,7 +204,7 @@ static @property int p7() { return k; } static @property void p7(int value) { k = value; } - ref int f1() { return i; } // ref returning function (no field) + ref int f1() return { return i; } // ref returning function (no field) int f2(Args...)(Args args) { return i; } @@ -309,7 +309,7 @@ enum c = 42; void f(); static void g(); - ref int h() { return a; } + ref int h() return { return a; } static ref int i() { return b; } } static assert(isNonStaticMember!(S, "a"));