annotate run/t/template_class_13_A.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author |
thomask |
date |
Mon, 09 Apr 2007 13:47:01 +0000 |
parents |
61617b6d35af |
children |
|
rev |
line source |
753
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Thomas Kuehne <thomas-dloop@kuehne.cn>
|
|
6 // @date@ 2005-11-26
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5669
|
753
|
8
|
|
9 module dstress.run.t.template_class_13_A;
|
|
10
|
|
11 class C(float f){
|
|
12 float cf = f;
|
|
13 }
|
|
14
|
|
15 int main(){
|
|
16 const float a = 1.2;
|
|
17 auto sa = new C!(a);
|
|
18 assert(sa.cf == a);
|
|
19
|
|
20 return 0;
|
|
21 }
|