digitalmars.D.bugs - [Issue 16383] New: Algebraic visit does not match handlers to const
- via Digitalmars-d-bugs (27/27) Aug 13 2016 https://issues.dlang.org/show_bug.cgi?id=16383
https://issues.dlang.org/show_bug.cgi?id=16383 Issue ID: 16383 Summary: Algebraic visit does not match handlers to const classes Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: cauterite gmail.com ( https://dpaste.dzfl.pl/e8709d95a4dc ) import std.variant; class C {}; void main() { alias T = Algebraic!(immutable(C)); T.init.visit!( (immutable(C) _) => 0 ); }; // error: "overload for type 'immutable(C)' hasn't been specified" const/immutable just don't get matched to the handlers. Probably related to bug 15615. --
Aug 13 2016