https://issues.dlang.org/show_bug.cgi?id=22916 --- Comment #7 from Walter Bright <bugzilla at digitalmars.com> --- I should have looked at the cheat sheet, which has: ref X foo(ref return scope P p) ReturnRef-Scope which concurs with what you wrote. --