changeset 557:1c17ba0ad3cd

aliasing an interface array after another interface using the alias makes it impossible to implement the interface Burton Radons <burton-radons@smocky.com> 2005-05-22 d6qih3$2b20$1@digitaldaemon.com
author thomask
date Wed, 01 Jun 2005 12:10:29 +0000
parents 5cfc11e8cfce
children f2a7a3d08d2a
files run/a/alias_24_A.d run/a/alias_24_B.d
diffstat 2 files changed, 58 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/alias_24_A.d	Wed Jun 01 12:10:29 2005 +0000
@@ -0,0 +1,29 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-05-22
+// @uri@	d6qih3$2b20$1@digitaldaemon.com
+// @desc@	aliasing an interface array after another interface using the alias makes it impossible to implement the interface
+
+module dstress.run.a.alias_24_A;
+
+interface S{
+}
+
+interface I{
+	void test(SList);
+}
+
+alias S [] SList;
+
+class C : I{
+	void test(SList o){
+	}
+}
+
+int main(){
+	C c = new C;
+	return 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/a/alias_24_B.d	Wed Jun 01 12:10:29 2005 +0000
@@ -0,0 +1,29 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Burton Radons <burton-radons@smocky.com>
+// @date@	2005-05-22
+// @uri@	d6qih3$2b20$1@digitaldaemon.com
+// @desc@	aliasing an interface array after another interface using the alias makes it impossible to implement the interface
+
+module dstress.run.a.alias_24_B;
+
+interface S{
+}
+
+alias S [] SList;
+
+interface I{
+	void test(SList);
+}
+
+class C : I{
+	void test(SList o){
+	}
+}
+
+int main(){
+	C c = new C;
+	return 0;
+}