878
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ bobef <bobef@lessequal.com>
|
|
6 // @date@ 2006-03-02
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6414
|
878
|
8 // @desc@ func.c:373: virtual void FuncDeclaration::semantic3(Scope*): Assertion `0' failed.
|
|
9
|
|
10 module dstress.run.t.this_10_C;
|
|
11
|
|
12 int status;
|
|
13
|
|
14 template T(){
|
|
15 class A{
|
|
16 }
|
|
17
|
|
18 class B : A{
|
|
19 this(){
|
|
20 status++;
|
|
21 }
|
|
22 }
|
|
23 }
|
|
24
|
|
25 int main(){
|
|
26 mixin T!();
|
|
27
|
|
28 if(status != 0){
|
|
29 assert(0);
|
|
30 }
|
|
31
|
|
32 A a = new A();
|
|
33
|
|
34 if(status != 0){
|
|
35 assert(0);
|
|
36 }
|
|
37
|
|
38 B b = new B();
|
|
39
|
|
40 if(status != 1){
|
|
41 assert(0);
|
|
42 }
|
|
43
|
|
44 A c = new B();
|
|
45
|
|
46 if(status != 2){
|
|
47 assert(0);
|
|
48 }
|
|
49
|
|
50 return 0;
|
|
51 }
|