http://d.puremagic.com/issues/show_bug.cgi?id=7152
Denis Shelomovskij changed:
What|Removed |Added
Status|REOPENED|RESOLVED
CC|
/e418d1e1072d4bf7254e759cdc0ad975d45ceed3
fix Issue 7152 - Can't assign null to default argument
This had not implemented as a part of issue 7019.
https://github.com/D-Programming-Language/dmd/commit/c7215bc74f0f80b248a69bc42ffbcecd97cc6faf
Merge pull request #1448 from 9rnsr/fix7152
Issue 7152 - Can't assign null to defaul
http://d.puremagic.com/issues/show_bug.cgi?id=7152
Kenji Hara changed:
What|Removed |Added
Keywords||pull, rejects-valid
Status|RES
http://d.puremagic.com/issues/show_bug.cgi?id=7152
Andrej Mitrovic changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=7152
--- Comment #1 from Kenji Hara 2011-12-22 03:44:43 PST ---
This is a dup of 7019.
I'm not sure the implicit constructor call is allowed in default argument.
Workaround:
struct Foo
{
this(int n) { }
//void opAssign(void* a) { } // not r