| Index: lib/src/checker/rules.dart
|
| diff --git a/lib/src/checker/rules.dart b/lib/src/checker/rules.dart
|
| index 8e5717af4d36681e3e30e62c5b8277b383b6864c..736721aad78454733b98b20570cf0a77d6015227 100644
|
| --- a/lib/src/checker/rules.dart
|
| +++ b/lib/src/checker/rules.dart
|
| @@ -533,10 +533,6 @@ class RestrictedRules extends TypeRules {
|
| if (ok) return InferredType.create(this, expr, toT);
|
| reason = (errors.isNotEmpty) ? errors.first : null;
|
| }
|
| - if (constContext && !options.allowConstCasts) {
|
| - reason = (reason == null) ? "Cast not allowed in const context" : reason;
|
| - return new StaticTypeError(this, expr, toT, reason: reason);
|
| - }
|
| if (c is Cast) return DownCast.create(this, expr, c, reason: reason);
|
| if (c is Wrapper) return ClosureWrap.create(this, expr, c, toT);
|
| assert(false);
|
|
|