[Issue 23626] [REG2.096] Template deduction with auto const ref Args... and delegate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 14 16:58:46 UTC 2023


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

--- Comment #1 from johanengelen at weka.io ---
This frontend change "fixes" the errors (3 lines removed):
diff dmd/mtype.d:
```
    /** Extends TypeNext.constConv by also checking for matching attributes **/
    override MATCH constConv(Type to)
    {
-        // Attributes need to match exactly, otherwise it's an implicit
conversion
-        if (this.ty != to.ty || !this.attributesEqual(cast(TypeFunction) to))
-            return MATCH.nomatch;
```

--


More information about the Digitalmars-d-bugs mailing list