comparison run/f/foreach_38_C.d @ 1586:a74f0139fc3d

Fix tests using typeof on types.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 Aug 2008 15:42:21 +0200
parents 22767ec83a24
children
comparison
equal deleted inserted replaced
1585:9f62db65faf5 1586:a74f0139fc3d
9 9
10 module dstress.run.f.foreach_38_C; 10 module dstress.run.f.foreach_38_C;
11 11
12 void Fields(C)(){ 12 void Fields(C)(){
13 foreach(i, a; typeof(C.tupleof)){ 13 foreach(i, a; typeof(C.tupleof)){
14 static assert(is(typeof(a) == typeof(C.tupleof)[i])); 14 static assert(is(a == typeof(C.tupleof)[i]));
15 } 15 }
16 } 16 }
17 17
18 struct MyStruct1 { 18 struct MyStruct1 {
19 int afield; 19 int afield;