Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 33aa687

Browse files
WalterBrightGeod24
authored andcommitted
pure functions infer scope, but not return 5
1 parent 475c85f commit 33aa687

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/core/internal/utf.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ string toUTF8(const scope dchar[] s)
692692
/* =================== Conversion to UTF16 ======================= */
693693

694694
@safe pure nothrow @nogc
695-
wchar[] toUTF16(wchar[] buf, dchar c)
695+
wchar[] toUTF16(return wchar[] buf, dchar c)
696696
in
697697
{
698698
assert(isValidDchar(c));

src/rt/aaA.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ struct Range
854854

855855
extern (C) pure nothrow @nogc @safe
856856
{
857-
Range _aaRange(AA aa)
857+
Range _aaRange(return AA aa)
858858
{
859859
if (!aa)
860860
return Range();

src/rt/monitor_.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ struct Monitor
233233

234234
private:
235235

236-
@property ref shared(Monitor*) monitor(Object h) pure nothrow @nogc
236+
@property ref shared(Monitor*) monitor(return Object h) pure nothrow @nogc
237237
{
238238
return *cast(shared Monitor**)&h.__monitor;
239239
}

0 commit comments

Comments
 (0)