class A {}
class B : A {}
void main() {
A delegate() foo;
B delegate() bar;
foo = bar;
}
Error: cannot implicitly convert expression (bar) of type B delegate() to A delegate()
Is there any reason why this shouldn't work?
Comment #1 by schveiguy — 2011-03-16T10:08:31Z
*** This issue has been marked as a duplicate of issue 3180 ***