lack of return from static method doesn't cause error #4204
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-duplicate
Closed in favor of an existing report
This issue was originally filed by domi...@google.com
This code passed through analyzer, the dart vm, dart2js, and ran in dartium.
Vector {
num x, y, z;
Vector(this.x, this.y, this.z);
static Vector normalize(Vector v) {
if (v.length != 0.0)
return Vector.multiply(v, 1.0 / length);
}
It was only when I passed in Vector(0, 0, 0) that I tickled the bug and received back an undefined Vector from the JS version.
The text was updated successfully, but these errors were encountered: