October 25, 2014 Re: Two cases for improving error messages | ||||
---|---|---|---|---|
| ||||
On Sat, Oct 25, 2014 at 05:14:31PM +0530, Shriramana Sharma via Digitalmars-d-learn wrote: > Hello. Please see the following and say whether they're OK to submit as bugs for improving the error messages. Thanks. > > ref int foo(ref int x) { return x ; } > > void main () { > foo(3) ; > // Error: function rvalue_argument.foo (ref int x) is not callable > using argument types (int) > // Comment: "argument ref int x of function rvalue_argument.foo cannot > bind to an rvalue" would be clearer IMO > > int i ; > ref ir = i ; > // Error: variable ref_type.main.ir only parameters or foreach > declarations can be ref > // Comment: add ", return values" after "parameters" > } [...] I agree with submitting both of these as enhancement requests. Please tag them with "diagnostic" in the keywords field. T -- To provoke is to call someone stupid; to argue is to call each other stupid. |
October 25, 2014 Re: Two cases for improving error messages | ||||
---|---|---|---|---|
| ||||
On Sat, Oct 25, 2014 at 8:00 PM, H. S. Teoh via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote: > > I agree with submitting both of these as enhancement requests. Please tag them with "diagnostic" in the keywords field. Done: https://issues.dlang.org/show_bug.cgi?id=13655 https://issues.dlang.org/show_bug.cgi?id=13656 You did say *requests* in the plural so I filed them separately. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा |
Copyright © 1999-2021 by the D Language Foundation