[Issue 11169] cannot create instance of abstract class
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 4 04:32:33 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11169
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-10-04 04:32:31 PDT ---
(In reply to comment #1)
> If others agree, please change the summary to something like
>
> __traits(isAbstractClass) uses the definition that it knows so far, not the
> whole definition of the class
Internal note:
The issue is that __traits(isAbstractClass) has side-effects. It will call
`ClassDeclaration::isAbstract`, but this will not only return the result but
also set the internal `isabstract` field for the class (damn getter functions
with side-effects..). I guess semantic() wasn't called on the class at that
point.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list