digitalmars.D.bugs - [Issue 22140] New: FunctionTypeOf fails for template opCall without
- d-bugmail puremagic.com (22/22) Jul 23 2021 https://issues.dlang.org/show_bug.cgi?id=22140
https://issues.dlang.org/show_bug.cgi?id=22140 Issue ID: 22140 Summary: FunctionTypeOf fails for template opCall without any templated argument Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: lsferreira169 gmail.com Similarly to https://issues.dlang.org/show_bug.cgi?id=22110 , FunctionTypeOf should also detect templated opCall without any templated argument. ``` struct TemplatedOpCallF { int opCall()(int) { return 0; } } static assert(is( FunctionTypeOf!TemplatedOpCallF == typeof(TemplatedOpCallF.opCall!()) )); ``` --
Jul 23 2021