annotate run/m/mixin_24_C.d @ 1320:daef239f37cf

sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author thomask
date Sun, 31 Dec 2006 19:59:08 +0000
parents 0e2d92ff0643
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1131
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
1 // $HeadURL$
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
2 // $Date$
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
3 // $Author$
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
4
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
5 // @author@ Sean Kelly <sean@f4.ca>
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
6 // @date@ 2006-09-11
1320
daef239f37cf sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents: 1131
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=343
1131
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
8 // @desc@ [Issue 343] New: Compile error using mixin containing struct
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
9
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
10 module dstress.run.m.mixin_24_C;
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
11
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
12 typedef int MyInt = 1;
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
13
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
14 struct S{
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
15 MyInt i;
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
16 }
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
17
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
18 template T(){
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
19 S s;
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
20 }
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
21
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
22 int main(){
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
23 mixin T!();
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
24
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
25 if(s.i != cast(MyInt)1){
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
26 assert(0);
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
27 }
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
28 return 0;
0e2d92ff0643 [Issue 343] New: Compile error using mixin containing struct
thomask
parents:
diff changeset
29 }