July 23, 2021 [Issue 22140] New: FunctionTypeOf fails for template opCall without any templated argument | ||||
|---|---|---|---|---|
| ||||
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!()) )); ``` -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply