changeset 325:af07ff921d82

Inside a class template, to refer to the template (and not the class generated from the template), a '.' must prefix the template name. Walter <walter@digitalmars.com> 2005-03-17 mail:003a01c52b76$992ac720$0200a8c0@colossus
author thomask
date Fri, 18 Mar 2005 06:47:18 +0000
parents 64e9ef1efd41
children c6614ff5368b
files run/template_class_03.d
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/run/template_class_03.d	Fri Mar 18 06:45:07 2005 +0000
+++ b/run/template_class_03.d	Fri Mar 18 06:47:18 2005 +0000
@@ -15,7 +15,7 @@
 
 class MyClass(T1, T2){
 	alias T1 type1;
-	alias MyClass!(T2) type2;
+	alias .MyClass!(T2) type2;
 }
 
 int main(){