changeset 207:d59b1bc64d25

mixin of templated struct Russ Lewis <spamhole-2001-07-16@deming-os.org> 2004-12-22 news:cqcr0k$v56$1@digitaldaemon.com nntp://digitalmars.com/digitalmars.D.bugs/2591
author thomask
date Thu, 23 Dec 2004 20:50:54 +0000
parents f9a6743fd8e9
children 278884e3a78d
files nocompile/mixin_04.d
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/mixin_04.d	Thu Dec 23 20:50:54 2004 +0000
@@ -0,0 +1,19 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Russ Lewis <spamhole-2001-07-16@deming-os.org>
+// @date@	2004-12-22
+// @uri@	news:cqcr0k$v56$1@digitaldaemon.com
+// @url@	nntp://digitalmars.com/digitalmars.D.bugs/2591
+
+module dstress.nocompile.mixin_04;
+
+struct Foo() {
+	int var;
+}
+
+struct Bar(T) {
+	mixin Foo;
+	alias Foo.var var;
+}