[Issue 22140] New: FunctionTypeOf fails for template opCall without any templated argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 23 22:27:32 UTC 2021


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 at puremagic.com
          Reporter: lsferreira169 at 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!()) ));
```

--


More information about the Digitalmars-d-bugs mailing list