[Issue 7123] static assert(is(typeof(toDelegate(&main)))) is false
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 17 04:12:11 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=7123
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2011-12-17 04:12:01 PST ---
Reduced test case:
private struct DelegateFaker(F)
{
template GeneratingPolicy() {}
enum WITH_BASE_CLASS = __traits(hasMember, GeneratingPolicy!(), "x");
}
auto toDelegate(F)(F fp)
{
alias DelegateFaker!F Faker;
}
void main()
{
version(pass)
{
pragma(msg, typeof(toDelegate(&main)));
static assert(is(typeof(toDelegate(&main))));
}
else
{
static assert(is(typeof(toDelegate(&main))));
}
}
--
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