[Issue 3682] is expression fails to match types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 14 07:24:27 PST 2010


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


Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de


--- Comment #2 from Rainer Schuetze <r.sagitario at gmx.de> 2010-02-14 07:24:26 PST ---
I've debugged this issue a bit: it seems to have to do with the unittest inside
struct Tuple(T...) auto inferring the return type of Tuple.slice(). This
triggers a recursive semantic analysis, which results in the template instance
not being resolved (the type stays qualified as TemplateInstance).

A simple workaround is moving the unittest out of the template definition of
Tuple.

-- 
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