[Issue 20246] New: isCallable fails for template opCall overload
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 26 18:50:31 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20246
Issue ID: 20246
Summary: isCallable fails for template opCall overload
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: snarwin+bugzilla at gmail.com
import std.traits: isCallable;
struct S { int opCall(T)(T) { return 0; } }
static assert(isCallable!(S.init));
---
The above static assert should pass, but instead fails.
--
More information about the Digitalmars-d-bugs
mailing list