OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 import "package:expect/expect.dart"; |
| 6 |
5 // Dart test verifying that the parser does not confuse parameterized types with | 7 // Dart test verifying that the parser does not confuse parameterized types with |
6 // boolean expressions, since both contain '<'. | 8 // boolean expressions, since both contain '<'. |
7 | 9 |
8 class GenericSyntaxTest<B, C, D, E, F> { | 10 class GenericSyntaxTest<B, C, D, E, F> { |
9 GenericSyntaxTest() {} | 11 GenericSyntaxTest() {} |
10 | 12 |
11 void foo(x1, x2, x3, x4, x5) { | 13 void foo(x1, x2, x3, x4, x5) { |
12 Expect.equals(true, x1); | 14 Expect.equals(true, x1); |
13 Expect.equals(3, x2); | 15 Expect.equals(3, x2); |
14 Expect.equals(4, x3); | 16 Expect.equals(4, x3); |
(...skipping 22 matching lines...) Expand all Loading... |
37 new GenericSyntaxTest().test(); | 39 new GenericSyntaxTest().test(); |
38 } | 40 } |
39 } | 41 } |
40 | 42 |
41 abstract class A<B, C, D, E, F> { | 43 abstract class A<B, C, D, E, F> { |
42 } | 44 } |
43 | 45 |
44 main() { | 46 main() { |
45 GenericSyntaxTest.testMain(); | 47 GenericSyntaxTest.testMain(); |
46 } | 48 } |
OLD | NEW |