[Issue 1775] Unittest inside template allows template mixin of an already declared class.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 11 03:50:12 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1775


fvbommel at wxs.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from fvbommel at wxs.nl  2008-01-11 05:50 -------
Since the template is never instantiated[1] but is syntactically correct, the
code inside it is never semantically checked and completely compiled. Moving
the unittest outside of the template produces the following errors (when
compiled with -unittest):
===
test.d(44): Error: no constructor for ImlException
test.d(45): Error: no property 'msg' for type 'test.__unittest0.ImlException'
===

[1] outside of the template, at least; the nested unittest isn't instantiated
until the template itself is instantiated and thus doesn't count since it won't
go any further than syntax checking.


Anyway, closing this as invalid since there's no reason for the code not to
compile. I suggest you submit a new bug report if you can get it to segfault
again; otherwise ask for help in digitalmars.D.learn...


-- 



More information about the Digitalmars-d-bugs mailing list