790
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Johan Granberg <lijat.meREM@VEgmail.com>
|
|
6 // @date@ 2006-01-03
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5970
|
790
|
8
|
|
9 module dstress.run.t.template_class_16_C;
|
|
10
|
|
11 class Module {
|
|
12 abstract GObject createObject();
|
|
13 }
|
|
14
|
|
15 class Factory(T):T {
|
|
16 override GObject createObject() {
|
|
17 return null;
|
|
18 }
|
|
19 }
|
|
20
|
|
21 class Alocator(T) : T {
|
|
22 }
|
|
23
|
|
24 alias Alocator!(Object) GObject;
|
|
25 alias Factory!(Module) GModule;
|
|
26
|
|
27 int main(){
|
|
28 GModule mod=new GModule();
|
|
29 return 0;
|
|
30 }
|