Thread overview | |||||
---|---|---|---|---|---|
|
January 23, 2019 [Issue 19606] Bad error message when two identical overloads exist as `@disable` and not | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19606 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid --- Comment #1 from Basile-z <b2.temp@gmx.com> --- I was trying to fix that and realized that another point of view is possible: the `@disable` overload is not designed to be used. The other yes. Consequently the code has to compile... A kind of decision / clarification about the semantic is required here. -- |
March 07, 2019 [Issue 19606] Bad error message when two identical overloads exist as `@disable` and not | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19606 Tiberiu Lepadatu <tiberiulepadatu14@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tiberiulepadatu14@gmail.com --- Comment #2 from Tiberiu Lepadatu <tiberiulepadatu14@gmail.com> --- (In reply to Basile-z from comment #0) > code: > > class Foo > { > @disable this(); > this(){} > } > > void main() > { > Foo foo = new Foo; > } > > > Error: `runnable.Foo.__ctor` called with argument types `()` matches both: > > I think that the compiler should detect an error before this one and rather complain that the same function exists as `@disable` and not. But why are you creating tow functions with the same name? What is the error that you think that should be thrown? -- |
February 07, 2022 [Issue 19606] Bad error message when two identical overloads exist as `@disable` and not | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19606 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID -- |
Copyright © 1999-2021 by the D Language Foundation