Ticket #98 (closed enhancement: fixed)
enhance error message on wrong use of != operator
Reported by: | jonathandavid | Owned by: | Chuck |
---|---|---|---|
Priority: | medium | Milestone: | Cobra 0.9 |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | warning,hint | Cc: |
Description
Most people new to Cobra and coming from a strong C/C++/Java/C# background will inadvertently write things like "x != 3.0f".
Right now the compiler responds to such code with an error message that is misleading, to say the least (something among the lines of "error: cannot convert implicitly from type double to type double?".
It would be nice if the compiler gave a more specific message ("Unrecognized operator") and even better if it could give a useful hint as well ("Did you mean <>? Cobra does not use != for inequality comparisons")
Change History
Note: See
TracTickets for help on using
tickets.