[Issue 22968] "Need this of type X" error message is confusing

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 27 20:09:15 UTC 2023


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dkorpel at live.nl
         Resolution|---                         |FIXED

--- Comment #1 from Dennis <dkorpel at live.nl> ---
Fixed by https://github.com/dlang/dmd/pull/15430

The error is now:
```
Error: calling non-static function `foo` requires an instance of type `S`
```

--


More information about the Digitalmars-d-bugs mailing list