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_G;
|
|
10
|
|
11 alias Alocator!(Object) GObject;
|
|
12
|
|
13 class Alocator(T) : T {
|
|
14 }
|
|
15
|
|
16 class Module {
|
|
17 abstract GObject createObject();
|
|
18 }
|
|
19
|
|
20 class Factory(T):T {
|
|
21 override GObject createObject() {
|
|
22 return null;
|
|
23 }
|
|
24 }
|
|
25
|
|
26 alias Factory!(Module) GModule;
|
|
27
|
|
28 int main(){
|
|
29 GModule mod=new GModule();
|
|
30 return 0;
|
|
31 }
|