Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1055 from 9rnsr/fix13809
Browse files Browse the repository at this point in the history
Add unittest for issue 13809
  • Loading branch information
9rnsr committed Dec 3, 2014
2 parents b66f2db + 72db25b commit 72e07b0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/object_.d
Original file line number Diff line number Diff line change
Expand Up @@ -3117,3 +3117,16 @@ unittest
i = s.dup;
static assert(!__traits(compiles, m = s.dup));
}

unittest
{
// Bugzilla 13809
static struct S
{
this(this) {}
~this() {}
}

S[] arr;
auto a = arr.dup;
}

0 comments on commit 72e07b0

Please sign in to comment.