Mercurial > projects > dstress
comparison 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 |
comparison
equal
deleted
inserted
replaced
1543:9597b1b8030f | 1544:ab3b56fdd9ab |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Bruno Medeiros <brunodomedeiros+bugz@gmail.com> | |
6 // @date@ 2007-05-26 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1148 | |
8 // @desc@ [Issue 1148] Weird error "... of type TOK146" on recursive type definition | |
9 | |
10 module dstress.run.t.typeof_17_C; | |
11 | |
12 functype foo(int i) { | |
13 return null; | |
14 } | |
15 | |
16 alias typeof(&foo) functype; | |
17 | |
18 int main(){ | |
19 if(foo(1) !is null){ | |
20 assert(0); | |
21 } | |
22 | |
23 return 0; | |
24 } |