Thread overview
[Issue 20078] Multiple confusing error messages
Jul 23, 2019
Simen Kjaeraas
Dec 17, 2022
Iain Buclaw
Apr 18, 2023
RazvanN
July 23, 2019
https://issues.dlang.org/show_bug.cgi?id=20078

Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=20078

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
April 18, 2023
https://issues.dlang.org/show_bug.cgi?id=20078

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
I now get:

test.d(3): Error: need `this` for `n` of type `int`
test.d(3):        instantiated from here: `fun1!((a) => n)`
test.d(11):        while evaluating `pragma(msg, this.__lambda2(0))`
test.d(3):        while evaluating `pragma(msg, fun1!((a) => n))`
test.d(4): Error: need `this` for `n` of type `int`
test.d(4):        instantiated from here: `fun2!((a) => n)`
test.d(17):        while evaluating `pragma(msg, this.__lambda3(0))`
test.d(4):        while evaluating `pragma(msg, fun2!((a) => n))`
test.d(5): Error: need `this` for `n` of type `int`
test.d(5):        instantiated from here: `fun3!((a) => n)`
test.d(5):        while evaluating `pragma(msg, fun3!((a) => n))`

So this seems to have been fixed.

--