Mercurial > projects > dstress
annotate run/t/typeof_17_A.d @ 1544:ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
Bruno Medeiros <brunodomedeiros+bugz@gmail.com>
2007-05-26
http://d.puremagic.com/issues/show_bug.cgi?id=1148
author | thomask |
---|---|
date | Sun, 01 Jul 2007 13:22:46 +0000 |
parents | |
children |
rev | line source |
---|---|
1544
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
2 // $Date$ |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
3 // $Author$ |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
4 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
5 // @author@ Bruno Medeiros <brunodomedeiros+bugz@gmail.com> |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
6 // @date@ 2007-05-26 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1148 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 1148] Weird error "... of type TOK146" on recursive type definition |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
9 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
10 module dstress.run.t.typeof_17_A; |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
11 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
12 void* v; |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
13 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
14 void bar(void* fn){ |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
15 v = cast(void*)fn; |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
16 } |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
17 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
18 void foo(functype param) { |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
19 param(null); |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
20 } |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
21 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
22 alias void function(void*) functype; |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
23 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
24 int main(){ |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
25 v = &main; |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
26 foo(&bar); |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
27 if(null !is v){ |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
28 assert(0); |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
29 } |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
30 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
31 return 0; |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
32 } |