Commit 1d035228 authored by Hixie's avatar Hixie

Remove the _EquationMember.hashCode override

Since we removed our operator== overload, we can now allow people to put
these in collections again.

Also, turn on two more analyzer lints: avoid_empty_else and hash_and_equals.
parent 48fc37f9
......@@ -24,8 +24,4 @@ abstract class _EquationMember {
Expression operator *(_EquationMember m) => asExpression() * m;
Expression operator /(_EquationMember m) => asExpression() / m;
@override
int get hashCode =>
throw "An equation member is not comparable and cannot be added to collections";
}
......@@ -13,6 +13,7 @@ analyzer:
todo: ignore
linter:
rules:
- avoid_empty_else
- always_declare_return_types
# we'll turn on avoid_as as soon as it doesn't complain about "as dynamic"
# - avoid_as
......@@ -20,6 +21,7 @@ linter:
# sometimes we have no choice (e.g. when matching other platforms)
# - constant_identifier_names
- empty_constructor_bodies
- hash_and_equals
# disabled until regexp fix is pulled in (https://github.com/flutter/flutter/pull/1996)
# - library_names
- library_prefixes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment