Skip to content

Commit dead392

Browse files
committed
Add a -betterC test for std.typecons.Tuple
1 parent 08bc75a commit dead392

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

std/typecons.d

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,13 @@ if (distinctFieldNames!(Specs))
15111511
assert(tuple(1, 2) == point);
15121512
}
15131513

1514+
@safe @betterC unittest
1515+
{
1516+
auto t = tuple(1, 2);
1517+
assert(t == tuple(1, 2));
1518+
auto t3 = tuple(1, 'd');
1519+
}
1520+
15141521
/**
15151522
Creates a copy of a $(LREF Tuple) with its fields in _reverse order.
15161523

0 commit comments

Comments
 (0)