August 12, 2004 [Bug report] Illegal cast | ||||
---|---|---|---|---|
| ||||
A change from the preprocessor bugs. I think the following is valid: struct base { }; struct derived : base { }; struct convertible { operator derived() { return derived(); } }; void test(base x) { } int main() { convertible x; test(x); } But dmc gives the error message: slice.cpp(21) : Error: illegal cast from: derived to : base Daniel |
August 13, 2004 Re: [Bug report] Illegal cast | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel James | Thanks for all the reports. I've added them to the bug list. -Walter |
Copyright © 1999-2021 by the D Language Foundation