Merge pull request dart-lang/glob#19 from srawlins/fix-runtime

Fix runtime cast issue
diff --git a/pkgs/glob/CHANGELOG.md b/pkgs/glob/CHANGELOG.md
index 1768bab..3c5854c 100644
--- a/pkgs/glob/CHANGELOG.md
+++ b/pkgs/glob/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.1.6
+
+* Improve support for Dart 2 runtime semantics.
+
 ## 1.1.5
 
 * Declare support for `async` 2.0.0.
diff --git a/pkgs/glob/lib/src/ast.dart b/pkgs/glob/lib/src/ast.dart
index 130342e..809d4bc 100644
--- a/pkgs/glob/lib/src/ast.dart
+++ b/pkgs/glob/lib/src/ast.dart
@@ -147,7 +147,7 @@
 
       var text = literal.text;
       if (context.style == p.Style.windows) text = text.replaceAll("/", "\\");
-      var components = context.split(text);
+      Iterable<String> components = context.split(text);
 
       // If the first component is absolute, that means it's a separator (on
       // Windows some non-separator things are also absolute, but it's invalid
diff --git a/pkgs/glob/pubspec.yaml b/pkgs/glob/pubspec.yaml
index 8aceccb..6f25684 100644
--- a/pkgs/glob/pubspec.yaml
+++ b/pkgs/glob/pubspec.yaml
@@ -1,5 +1,5 @@
 name: glob
-version: 1.1.5
+version: 1.1.6
 author: "Dart Team <misc@dartlang.org>"
 homepage: https://github.com/dart-lang/glob
 description: Bash-style filename globbing.