new warning: operator negate should return a numeric type on vector and matrix types #3850
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
closed-duplicate
Closed in favor of an existing report
This issue was originally filed by joh...@johnmccutchan.com
Upgrading to the latest version of DartEditor I noticed a new warning for the following code:
/// Returns a new vec2 from -this
vec2 operator negate() => new vec2(-x, -y);
The warning is: operator negate should return a numeric type.
Vectors and matrices are numeric types and I expect to be able to use negate on them. Can this be relaxed?
Thanks,
John
The text was updated successfully, but these errors were encountered: