[Issue 17518] confusing error message with inout constructor/ctor
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jun 18 00:59:38 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17518
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
Severity|normal |regression
--- Comment #1 from Vladimir Panteleev <thecybershadow at gmail.com> ---
This seems to be a regression.
2.061:
test.d(13): Error: constructor test.S.this (inout(Correct) _param_0) inout is
not callable using argument types (Wrong)
test.d(13): Error: cannot implicitly convert expression (Wrong()) of type Wrong
to Correct
2.062:
test.d(13): Error: inout method test.S.this is not callable using a mutable
object
test.d(13): Error: cannot implicitly convert expression (Wrong()) of type Wrong
to Correct
2.063:
test.d(13): Error: inout method test.S.this is not callable using a mutable
object
The 2.062 -> 2.063 change was caused by https://github.com/dlang/dmd/pull/1842.
Not sure about the first one.
--
More information about the Digitalmars-d-bugs
mailing list