Skip to content

Commit

Permalink
Merge pull request #2074 from dymk/fix-12540
Browse files Browse the repository at this point in the history
Add unittest for 12540
  • Loading branch information
monarchdodra committed Apr 14, 2014
2 parents 98d7d72 + bcf0f97 commit a7f08aa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions std/variant.d
Original file line number Diff line number Diff line change
Expand Up @@ -2225,3 +2225,17 @@ unittest
assertNotThrown!VariantException(v.get!(const(Object)));
assertNotThrown!VariantException(v.get!(immutable(Object)));
}

unittest
{
static struct DummyScope
{
// https://d.puremagic.com/issues/show_bug.cgi?id=12540
alias Alias12540 = Algebraic!Class12540;

static class Class12540
{
Alias12540 entity;
}
}
}

0 comments on commit a7f08aa

Please sign in to comment.