Thread overview
[Issue 20341] [REG 2.063] 'this' required for explicit instantiation of template member function using template this
October 29, 2022
https://issues.dlang.org/show_bug.cgi?id=20341

Steven Schveighoffer <schveiguy@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@gmail.com
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=14484

--
March 16, 2023
https://issues.dlang.org/show_bug.cgi?id=20341

--- Comment #1 from Steven Schveighoffer <schveiguy@gmail.com> ---
Just ran into this. I'm surprised this is still an issue.

Happens with classes as well.

```d
class C
{
    void foo(this T)() {}
}

class D : C
{
    void bar() { foo(); }
}
```

The error I get is:

```
onlineapp.d(8): Error: none of the overloads of template `onlineapp.C.foo` are
callable using argument types `!()()`
onlineapp.d(3):        Candidate is: `foo(this T)()`
```

--
March 16, 2023
https://issues.dlang.org/show_bug.cgi?id=20341

Steven Schveighoffer <schveiguy@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, rejects-valid

--
March 16, 2023
https://issues.dlang.org/show_bug.cgi?id=20341

Steven Schveighoffer <schveiguy@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Steven Schveighoffer <schveiguy@gmail.com> ---


*** This issue has been marked as a duplicate of issue 14484 ***

--