Mercurial > projects > dstress
view run/a/alias_31_C.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 93511f726375 |
children | 345207906be7 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Sean Kelly <sean@f4.ca> // @date@ 2006-02-09 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6193 module dstress.run.a.alias_31_C; template ClassOf(Type){ class ClassOf{ Type val; template ref(){ alias val ref; } } } int main(){ auto c = new ClassOf!(int)(); int x = 3; c.ref!() = x; if(c.ref!() == 3){ return 0; } }