Use types in const expression to prevent evaluation exception in anal… (#105)
* Use types in const expression to prevent evaulation exception in analyzer
* update CHANGELOG and pubspec
* format file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bb3c05f..42148b9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.7.3+2
+
+* Fix constant evaluation analyzer error in `shelf_unmodifiable_map.dart`.
+
## 0.7.3+1
* Updated SDK version to 2.0.0-dev.55.0.
diff --git a/lib/src/shelf_unmodifiable_map.dart b/lib/src/shelf_unmodifiable_map.dart
index 3e1d14f..d6a5c00 100644
--- a/lib/src/shelf_unmodifiable_map.dart
+++ b/lib/src/shelf_unmodifiable_map.dart
@@ -54,7 +54,7 @@
class _EmptyShelfUnmodifiableMap<V> extends MapView<String, V>
implements ShelfUnmodifiableMap<V> {
bool get _ignoreKeyCase => true;
- const _EmptyShelfUnmodifiableMap() : super(const {});
+ const _EmptyShelfUnmodifiableMap() : super(const <String, Null>{});
// Override modifier methods that care about the type of key they use so that
// when V is Null, they throw UnsupportedErrors instead of type errors.
diff --git a/pubspec.yaml b/pubspec.yaml
index cae569b..bb6a2ef 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: shelf
-version: 0.7.3+1
+version: 0.7.3+2
author: Dart Team <misc@dartlang.org>
description: Web Server Middleware for Dart
homepage: https://github.com/dart-lang/shelf