diff run/template_10.d @ 223:9603ea1557fc

template specialization bug Aleksey Bobnev <uw@front.ru> 2004-12-27 news:cqp4fk$1dcj$1@digitaldaemon.com nntp://digitalmars.com/digitalmars.D.bugs/2613
author thomask
date Sat, 01 Jan 2005 04:47:14 +0000
parents
children 52c9e86b6486
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/template_10.d	Sat Jan 01 04:47:14 2005 +0000
@@ -0,0 +1,21 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Aleksey Bobnev <uw@front.ru>
+// @date@	2004-12-27
+// @uri@	news:cqp4fk$1dcj$1@digitaldaemon.com
+// @url@	nntp://digitalmars.com/digitalmars.D.bugs/2613
+
+module dstress.run.template_10;
+
+import addon.template_10_typelist;
+
+template IsArray(T)        { static const bool IsArray = false; }
+template IsArray(T : T[])  { static const bool IsArray = true; }
+
+int main(){
+    assert(IsArray!(int[])==1);
+	assert(IsArray!(int)==0);
+	return 0;
+}
\ No newline at end of file