← Back to index
|
Original Bugzilla link
Bug 22140 – FunctionTypeOf fails for template opCall without any templated argument
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-07-23T22:27:32Z
Last change time
2021-08-04T07:20:37Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira
Comments
Comment #0
by contact — 2021-07-23T22:27:32Z
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!()) )); ```
Comment #1
by dlang-bot — 2021-07-23T22:31:22Z
@ljmf00 created dlang/phobos pull request #8176 "Fix Issue #22140: FunctionTypeOf fails for template opCall without any templated argument" fixing this issue: - std/traits: FunctionTypeOf fails for template opCall Fixes Issue #22140 . Signed-off-by: Luís Ferreira <
[email protected]
>
https://github.com/dlang/phobos/pull/8176
Comment #2
by dlang-bot — 2021-08-04T07:20:37Z
dlang/phobos pull request #8176 "Fix Issue #22140: FunctionTypeOf fails for template opCall without any templated argument" was merged into master: - 84f7c9b4b5f4f04c5222ad4389aeff2af24fbca0 by Luís Ferreira: std/traits: FunctionTypeOf fails for template opCall Fixes Issue #22140 . Signed-off-by: Luís Ferreira <
[email protected]
>
https://github.com/dlang/phobos/pull/8176