[Issue 22110] New: isCallable fails for template opCall without any templated argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 7 16:14:54 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22110

          Issue ID: 22110
           Summary: isCallable 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

struct Foo
{
    auto opCall()() { return 1; }
}

isCallable!Foo is reporting false and it is actually true, because Foo() is
possible.

--


More information about the Digitalmars-d-bugs mailing list