Mercurial > projects > dstress
comparison compile/m/mangleof_19_A.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 |
---|---|
13 class Basket { | 13 class Basket { |
14 } | 14 } |
15 | 15 |
16 alias void function (Basket) H; | 16 alias void function (Basket) H; |
17 | 17 |
18 const char [] mangledname = typeof(H).mangleof; | 18 const char [] mangledname = H.mangleof; |
19 } | 19 } |
20 | 20 |
21 template Peach(alias A){ | 21 template Peach(alias A){ |
22 const char [] root = Apple!(A).mangledname; | 22 const char [] root = Apple!(A).mangledname; |
23 static assert(Apple!(A).mangledname == root); | 23 static assert(Apple!(A).mangledname == root); |