Index: tests/language/regress_24567_test.dart |
diff --git a/tests/language/type_variable_closure3_test.dart b/tests/language/regress_24567_test.dart |
similarity index 61% |
copy from tests/language/type_variable_closure3_test.dart |
copy to tests/language/regress_24567_test.dart |
index ecb1c39e82ed81cc01dd061dca2b5070890f985b..e72750a7c0cfb37105d556557ed0f3bb2595f9c2 100644 |
--- a/tests/language/type_variable_closure3_test.dart |
+++ b/tests/language/regress_24567_test.dart |
@@ -3,16 +3,15 @@ |
// BSD-style license that can be found in the LICENSE file. |
import "package:expect/expect.dart"; |
+import 'dart:math' as math; |
-class A<T> {} |
+class Random { } |
-class C<T> { |
- a() { |
- return () => new A<T>(); |
- } |
-} |
+typedef F(Random r); |
main() { |
- Expect.isTrue(new C<int>().a()() is A<int>); |
- Expect.isFalse(new C<int>().a()() is A<String>); |
+ f(Random r) { } |
+ g(math.Random r) { } |
+ Expect.isTrue(f is F); |
+ Expect.isFalse(g is F); |
} |