diff test/tuple1.d @ 21:8d45266bbabe trunk

[svn r25] * Fixed a lot of problems with string literals * Fixed slice-slice copying assignment
author lindquist
date Thu, 04 Oct 2007 07:01:15 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/tuple1.d	Thu Oct 04 07:01:15 2007 +0200
@@ -0,0 +1,18 @@
+module tuple1;
+
+template Tuple(T...) {
+    alias T Tuple;
+}
+
+struct S
+{
+    int i;
+    long l;
+}
+
+void main()
+{
+    S s = S(Tuple!(1,2L));
+    assert(s.i == 1);
+    assert(s.l == 2);
+}