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

pure functions imply scope attribute, but not return attribute #2989

Merged
merged 1 commit into from
Mar 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/demangle.d
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,7 @@ char[] mangle(T)(const(char)[] fqn, char[] dst = null) @safe pure nothrow

@property bool empty() const { return !s.length; }

@property const(char)[] front() const
@property const(char)[] front() const return
{
immutable i = indexOfDot();
return i == -1 ? s[0 .. $] : s[0 .. i];
Expand Down