OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library test.generics_double_substitution; | 5 library test.generics_double_substitution; |
6 | 6 |
7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
8 import 'package:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
9 | 9 |
10 class A<R> {} | 10 class A<R> {} |
(...skipping 11 matching lines...) Expand all Loading... |
22 VariableMirror field = cOfString.declarations[#field]; | 22 VariableMirror field = cOfString.declarations[#field]; |
23 Expect.equals(aOfString, field.type); | 23 Expect.equals(aOfString, field.type); |
24 | 24 |
25 MethodMirror returnType = cOfString.declarations[#returnType]; | 25 MethodMirror returnType = cOfString.declarations[#returnType]; |
26 Expect.equals(aOfString, returnType.returnType); | 26 Expect.equals(aOfString, returnType.returnType); |
27 | 27 |
28 MethodMirror parameterType = cOfString.declarations[#parameterType]; | 28 MethodMirror parameterType = cOfString.declarations[#parameterType]; |
29 Expect.equals(aOfString, parameterType.parameters.single.type); | 29 Expect.equals(aOfString, parameterType.parameters.single.type); |
30 | 30 |
31 ClassMirror typeArgOfSuperclass = cOfString.superclass.typeArguments.single; | 31 ClassMirror typeArgOfSuperclass = cOfString.superclass.typeArguments.single; |
32 Expect.equals(aOfString, typeArgOfSuperclass); /// 01: ok | 32 Expect.equals(aOfString, typeArgOfSuperclass); //# 01: ok |
33 } | 33 } |
OLD | NEW |