[Issue 18917] Default Value for Function-Type Template Value-Parameter Causes Conflicts in Instantiation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 30 10:18:06 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18917

Andrea Fontana <trikkuz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trikkuz at gmail.com

--- Comment #1 from Andrea Fontana <trikkuz at gmail.com> ---
Reduced:

class A(T, T function(T) func = function(T a) { return a; }) { }

void main()
{
    A!char a;
    A!int b;
}

--


More information about the Digitalmars-d-bugs mailing list