[Issue 2128] Template function argument binding is too restrictive wrt qualifiers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 15 14:00:58 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=2128
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dmitry.olsh at gmail.com
Resolution|--- |WORKSFORME
--- Comment #5 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
Works with s/invariant/immutable/:
void foo(Idx)(Idx a, Idx b) {}
void main(string[] args)
{
uint x;
immutable uint y;
foo(x, y);
}
Compiles just fine.
--
More information about the Digitalmars-d-bugs
mailing list