comparison compile/m/mangleof_19_E.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 daef239f37cf
children
comparison
equal deleted inserted replaced
1585:9f62db65faf5 1586:a74f0139fc3d
12 template Apple(alias F){ 12 template Apple(alias F){
13 typedef int Basket; 13 typedef int Basket;
14 14
15 alias void function (Basket) H; 15 alias void function (Basket) H;
16 16
17 const char [] mangledname = typeof(H).mangleof; 17 const char [] mangledname = H.mangleof;
18 } 18 }
19 19
20 template Peach(alias A){ 20 template Peach(alias A){
21 const char [] root = Apple!(A).mangledname; 21 const char [] root = Apple!(A).mangledname;
22 static assert(Apple!(A).mangledname == root); 22 static assert(Apple!(A).mangledname == root);