[Issue 20078] Multiple confusing error messages
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 18 11:45:00 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=20078
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |WORKSFORME
--- Comment #1 from RazvanN <razvan.nitu1305 at 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.
--
More information about the Digitalmars-d-bugs
mailing list