[Issue 16410] attribute inference for final methods of templated classes

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 23 08:04:24 PDT 2016


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

Lodovico Giaretta <lodovico at giaretart.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|attribute inference inside  |attribute inference for
                   |templated classes           |final methods of templated
                   |                            |classes
           Severity|major                       |normal

--- Comment #9 from Lodovico Giaretta <lodovico at giaretart.net> ---
(In reply to Lodovico Giaretta from comment #8)
> Sorry, I don't understand why Foo!T.bar being @nogc would prevent possibly
> intended behaviour. Can you please elaborate on this?

Nevermind, got that. If a method is inferred @nogc, it can no longer be
overridden as non- at nogc. This is correct. My bad.

Then a new question arises: why cannot attribute inference happen for *final*
methods of templated classes?

--


More information about the Digitalmars-d-bugs mailing list