Chromium Code Reviews| Index: tests/language/cyclic_type_test.dart |
| diff --git a/tests/language/cyclic_type_test.dart b/tests/language/cyclic_type_test.dart |
| index 4de75d947c24dd9de6d51d4204f690254784f204..a3e93f52186c6ebeced165ef0e22d90e40540b1f 100644 |
| --- a/tests/language/cyclic_type_test.dart |
| +++ b/tests/language/cyclic_type_test.dart |
| @@ -28,6 +28,11 @@ class Derived1<U> extends Base<Derived2<U>> {} /// 04: ok |
| class Derived2<V> extends Base<Derived1<Derived2<V>>> {} /// 04: ok |
| main() { |
| + // In the tests below we test that we get "int" when calling toString() on the |
|
floitsch
2015/02/05 10:55:35
(same is true for "bool")
zarah
2015/02/06 08:53:12
Done.
|
| + // int type. This is not required behaviour. However, we want to keep the |
|
floitsch
2015/02/05 10:55:35
tiny tiny nit: behavior.
(we generally use US engl
zarah
2015/02/06 08:53:12
Done.
|
| + // original names for the most common core types so we make sure to handle |
| + // these specifically in the compiler. |
| + |
| var d; |
| d = new Derived(); /// 00: continued |
| Expect.equals("Derived", d.t.toString()); /// 00: continued |
| @@ -37,6 +42,7 @@ main() { |
| Expect.equals("Derived<Derived>", d.t.toString()); /// 00: continued |
| d = new Derived(); /// 01: continued |
| + |
| Expect.equals("Derived<Derived<int>>", d.t.toString()); /// 01: continued |
| d = new Derived<bool>(); /// 01: continued |
| Expect.equals("Derived<Derived<int>>", d.t.toString()); /// 01: continued |