changeset 164:a76b2b568cc3

anonymous delegate bug Ilya Zaitseff <sark7@mail333.com> 2004-11-21 news:opshte8nzvaaezs2@localhost nntp://news.digitalmars.com/digitalmars.D.bugs/2315
author thomask
date Wed, 01 Dec 2004 07:58:06 +0000
parents 23c3da8970e3
children 67b55a6891a1
files compile/delegate_13.d
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/delegate_13.d	Wed Dec 01 07:58:06 2004 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Ilya Zaitseff <sark7@mail333.com>
+// @date@	2004-11-21
+// @uri@	news:opshte8nzvaaezs2@localhost
+// @url@	nntp://news.digitalmars.com/digitalmars.D.bugs/2315
+
+module dstress.compile.delegate_13;
+
+class A(T)
+{
+   void foo(void delegate (T) d) {}
+
+   void bar()
+   {
+     foo(delegate void (T t) {});
+   }
+}
+
+class B: A!(B) {}
+
+class C: A!(C) {}
+