Skip to content

Commit

Permalink
Add a -betterC test for std.typecons.Tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Dec 31, 2018
1 parent 08bc75a commit dead392
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions std/typecons.d
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,13 @@ if (distinctFieldNames!(Specs))
assert(tuple(1, 2) == point);
}

@safe @betterC unittest
{
auto t = tuple(1, 2);
assert(t == tuple(1, 2));
auto t3 = tuple(1, 'd');
}

/**
Creates a copy of a $(LREF Tuple) with its fields in _reverse order.
Expand Down

0 comments on commit dead392

Please sign in to comment.