| Index: lib/src/checker/rules.dart
|
| diff --git a/lib/src/checker/rules.dart b/lib/src/checker/rules.dart
|
| index 09ebb228de7fc76d0355832022896a7a3ee64ae4..a6a8f0be14aeb36203e27cf8749cd3ce1c3f7f5b 100644
|
| --- a/lib/src/checker/rules.dart
|
| +++ b/lib/src/checker/rules.dart
|
| @@ -43,7 +43,7 @@ abstract class TypeRules {
|
| bool isNonNullableType(DartType t) => false;
|
| bool maybeNonNullableType(DartType t) => false;
|
|
|
| - StaticInfo checkAssignment(Expression expr, DartType t, bool constContext);
|
| + StaticInfo checkAssignment(Expression expr, DartType t);
|
|
|
| DartType getStaticType(Expression expr) => expr.staticType;
|
|
|
| @@ -93,8 +93,7 @@ class DartRules extends TypeRules {
|
| return t1.isAssignableTo(t2);
|
| }
|
|
|
| - StaticInfo checkAssignment(
|
| - Expression expr, DartType toType, bool constContext) {
|
| + StaticInfo checkAssignment(Expression expr, DartType toType) {
|
| final fromType = getStaticType(expr);
|
| if (!isAssignable(fromType, toType)) {
|
| return new StaticTypeError(this, expr, toType);
|
| @@ -444,7 +443,7 @@ class RestrictedRules extends TypeRules {
|
| return Coercion.error();
|
| }
|
|
|
| - StaticInfo checkAssignment(Expression expr, DartType toT, bool constContext) {
|
| + StaticInfo checkAssignment(Expression expr, DartType toT) {
|
| final fromT = getStaticType(expr);
|
| final Coercion c = _coerceTo(fromT, toT);
|
| if (c is Identity) return null;
|
|
|