Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added failing completion test

git-svn-id: http://haxe.googlecode.com/svn/trunk@5410 f16182fa-f095-11de-8f43-4547254af6c6
  • Loading branch information...
commit d4ec1df5c4a6fdc97cd6f8b966206f9705fa9e86 1 parent c9eceb1
simon.krajewski@simn.de authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/unit/TestType.hx
5 tests/unit/TestType.hx
View
@@ -624,6 +624,11 @@ class TestType extends Test {
for (k in [s].iterator()) {
eq(complete("k.|"), "foo:Int");
}
+
+ var f = function():Iterator<{foo:Int}> {
+ return [s].iterator();
+ };
+ eq(complete("for (k in f()) k.|"), "foo:Int");
#end
}
Please sign in to comment.
Something went wrong with that request. Please try again.