digitalmars.D.bugs - [Issue 13435] New: Strange error if struct is a class member and
- via Digitalmars-d-bugs (30/30) Sep 07 2014 https://issues.dlang.org/show_bug.cgi?id=13435
https://issues.dlang.org/show_bug.cgi?id=13435 Issue ID: 13435 Summary: Strange error if struct is a class member and opAssign applied Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: temtaime gmail.com import std.stdio; struct S(T) { void opAssign(T[] arg) {} } class B { this(int[] d) { S!int c; //_a = d; // Error: cannot implicitly convert expression (d) of type int[] to S!int c = d; // compiles OK } S!int _a; } void main() { } --
Sep 07 2014