Merge pull request #9 from dart-lang/param_type

fix param types on methods in _EmptyVersion
diff --git a/.gitignore b/.gitignore
index 7178642..98fed01 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+.packages
 packages
 pubspec.lock
 
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 58190a8..7dca24c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+# 1.2.2
+
+* Make the package analyze under strong mode and compile with the DDC (Dart Dev
+  Compiler). Fix two issues with a private subclass of `VersionConstraint`
+  having different types for overridden methods.
+
 # 1.2.1
 
 * Allow version ranges like `>=1.2.3-dev.1 <1.2.3` to match pre-release versions
diff --git a/lib/src/version_constraint.dart b/lib/src/version_constraint.dart
index 3f4d5b8..dbd0aa5 100644
--- a/lib/src/version_constraint.dart
+++ b/lib/src/version_constraint.dart
@@ -209,8 +209,8 @@
   bool get isEmpty => true;
   bool get isAny => false;
   bool allows(Version other) => false;
-  bool allowsAll(Version other) => other.isEmpty;
-  bool allowsAny(Version other) => false;
+  bool allowsAll(VersionConstraint other) => other.isEmpty;
+  bool allowsAny(VersionConstraint other) => false;
   VersionConstraint intersect(VersionConstraint other) => this;
   VersionConstraint union(VersionConstraint other) => other;
   String toString() => '<empty>';
diff --git a/pubspec.yaml b/pubspec.yaml
index 33545a3..530a4ce 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: pub_semver
-version: 1.2.1
+version: 1.2.2
 author: Dart Team <misc@dartlang.org>
 description: >
  Versions and version constraints implementing pub's versioning policy. This