[Issue 19232] ICE when overriding templated method

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 9 11:31:11 UTC 2018


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

--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
However, the following code compiles successfully :

abstract class Bar {
        void get(A)() { }
}

class Foo : Bar {
        override void get(A)() { }
}

unittest {
        Bar foo = new Foo();
        foo.get!(int)();
}

compiles successfully and the method in the Bar is called.

--


More information about the Digitalmars-d-bugs mailing list