https://d.puremagic.com/issues/show_bug.cgi?id=12302
Summary: Assertion failure in expression.c (line 432) when
using template isCallable
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from GoldMax <[email protected]> 2014-03-06 00:52:05 PST ---
DMD 2.065
class A
{
X x;
struct X
{
int f() { return 1; }
}
auto opDispatch(string s, TArgs...)(TArgs args)
{
mixin("return x."~s~"(args);");
}
}
A func() { return null; }
pragma(msg, isCallable!func); // Error
The compilation failed with error:
dmd: expression.c:432: Expression* resolvePropertiesX(Scope*, Expression*,
Expression*): Assertion `fd->type->ty == Tfunction' failed.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------