isCallable is not an expression
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Sep 24 10:33:52 PDT 2014
On 09/24/2014 01:11 AM, andre wrote:
> static if (isSomeFunction!(__traits(getMember,
> typeof(this), m))
Submitted the following bug report:
https://issues.dlang.org/show_bug.cgi?id=13528
import std.traits;
mixin template MyTemplate()
{
void foo()
{
pragma(msg, __traits(getMember, typeof(this), "foo"));
}
}
class A
{
mixin MyTemplate;
}
void main()
{
auto a = new A();
}
Error: Internal Compiler Error: CTFE DotType: this.A
while evaluating pragma(msg, __traits(getMember, A, "foo"))
Ali
More information about the Digitalmars-d-learn
mailing list