[Issue 20945] alias x = ref y compiles
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 18 04:58:47 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20945
Boris Carvajal <boris2.9 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |boris2.9 at gmail.com
--- Comment #1 from Boris Carvajal <boris2.9 at gmail.com> ---
There's one usage of this in Phobos even though it doesn't work.
std/range/package.d
----------------------------
// This doesn't work yet
static if (allSameType)
{
alias ElementType = ref RvalueElementType;
}
else
{
----------------------------
--
More information about the Digitalmars-d-bugs
mailing list