Index: tests/language/regress_24567_test.dart |
diff --git a/tests/language/conflicting_type_variable_and_setter_test.dart b/tests/language/regress_24567_test.dart |
similarity index 62% |
copy from tests/language/conflicting_type_variable_and_setter_test.dart |
copy to tests/language/regress_24567_test.dart |
index 2aca0c32b659b1f1f213c4744ab50c6753befbbc..e72750a7c0cfb37105d556557ed0f3bb2595f9c2 100644 |
--- a/tests/language/conflicting_type_variable_and_setter_test.dart |
+++ b/tests/language/regress_24567_test.dart |
@@ -3,17 +3,15 @@ |
// BSD-style license that can be found in the LICENSE file. |
import "package:expect/expect.dart"; |
+import 'dart:math' as math; |
-class C<D> { |
- void set D(int value) { |
- field = value; |
- } |
+class Random { } |
- int field; |
-} |
+typedef F(Random r); |
main() { |
- C<int> c = new C<int>(); |
- c.D = 1; |
- Expect.equals(c.field, 1); |
+ f(Random r) { } |
+ g(math.Random r) { } |
+ Expect.isTrue(f is F); |
+ Expect.isFalse(g is F); |
} |