view tests/mini/forwdecl1.d @ 919:c76f74d09fb1

Fixed assertion failure when object.d is missing the ModuleInfo class
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 02 Feb 2009 02:35:44 +0100
parents a15ccbf7451d
children
line wrap: on
line source

struct Foo;

Foo* foo()
{
    return null;
}

void main()
{
    Foo* f = foo();
    assert(f is null);
}