[Issue 4617] Alias this'ed symbols cannot be passed to templates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 10 22:39:49 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4617
--- Comment #1 from Shin Fujishiro <rsinfu at gmail.com> 2010-08-10 22:39:48 PDT ---
The bug also causes a false negative of __traits(isSame), becuase isSame reuses
the same algorithm as template instantiation:
-------------------- test3.d
static assert( __traits(isSame, S.square, S.forward.square) );
struct S
{
struct F
{
int square(int n) { return n*n; }
real square(real n) { return n*n; }
}
F forward;
alias forward this;
}
--------------------
% dmd -o- -c test3.d
test3.d(1): Error: static assert (__traits(isSame,forward.square,square)) is
false
--------------------
--
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