Mercurial > projects > dstress
annotate nocompile/c/classinfo_02_A.d @ 1536:89775df1607d
vtable can't be used as a template parameter
author | thomask |
---|---|
date | Mon, 07 May 2007 05:20:25 +0000 |
parents | |
children |
rev | line source |
---|---|
1536 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ david <davidl@126.com> | |
6 // @date@ 2007-04-16 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1153 | |
8 // @desc@ [Issue 1153] dmd assertion failure | |
9 | |
10 // __DSTRESS_ELINE__ 20 | |
11 | |
12 module dstress.nocompile.c.classinfo_02_A; | |
13 | |
14 class Foo{ | |
15 } | |
16 | |
17 template Wrapper(int i){ | |
18 } | |
19 | |
20 mixin Wrapper!(cast(int)(Foo.classinfo.vtbl[0])); | |
21 |