Coverity tool
Ary Borenszweig
ary at esperanto.org.ar
Wed Feb 10 19:53:18 PST 2010
Michel Fortin wrote:
> unittest {
> NonNullable!Object o;
Here o is null.
> NonNullable!ClassInfo o2 = o.classinfo;
> NonNullable!TypeInfo o3;
> //NonNullable!Object o4 = o2; // FIXME: polymorphic NonNullable
> o = new Object;
> o = o2;
> try {
> o = o3; // should throw
> o.toString();
> assert(0, "prior assignment should have thrown");
> } catch (IllegalNullAssignment e) {
> // ok, error thrown.
> }
> }
More information about the Digitalmars-d
mailing list