[Issue 19209] [ICE] variable cannot be of type void and recursive import

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 5 13:46:05 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19209

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
Reduced example:

class Spam {
    int method;                                                                 
}

class Spammer : Spam
{
    override method() {}
}

The problem is that `method` is trying to override a field.

--


More information about the Digitalmars-d-bugs mailing list