comparison tests/mini/forwdecl1.d @ 656:a15ccbf7451d

Support structs that are merely a forward reference. See mini/forwdecl1.d
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 06 Oct 2008 14:06:55 +0200
parents
children
comparison
equal deleted inserted replaced
655:93433f4b6963 656:a15ccbf7451d
1 struct Foo;
2
3 Foo* foo()
4 {
5 return null;
6 }
7
8 void main()
9 {
10 Foo* f = foo();
11 assert(f is null);
12 }