September 26, 2019 [Issue 20246] New: isCallable fails for template opCall overload | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: snarwin+bugzilla@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. -- |
Copyright © 1999-2021 by the D Language Foundation