class Foo
{
Foo f;
Foo bar () const
{
return f;
}
}The above code results in the compile error:Error: cannot implicitly convert expression (this.f) of type const(Foo) to test.Foo
But if I change "bar" to:
Object bar () const
{
return f;
}
I don't get any errors. Is the last example supposed to compile?
I'm using DMD v2.059.
--
/Jacob Carlborg
