Mercurial > projects > dstress
annotate run/t/typeof_17_C.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_C; |
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 functype foo(int i) { |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
13 return null; |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
14 } |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
15 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
16 alias typeof(&foo) functype; |
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 int main(){ |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
19 if(foo(1) !is null){ |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
20 assert(0); |
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 |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
23 return 0; |
ab3b56fdd9ab
[Issue 1148] Weird error "... of type TOK146" on recursive type definition
thomask
parents:
diff
changeset
|
24 } |