| 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_substitution; | 5 library test.generics_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 SuperGeneric<R, S> { | 10 class SuperGeneric<R, S> { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 Expect.equals(#int, s(genericOfString.superclass)); | 41 Expect.equals(#int, s(genericOfString.superclass)); |
| 42 Expect.equals(#String, t(genericOfString)); | 42 Expect.equals(#String, t(genericOfString)); |
| 43 | 43 |
| 44 Expect.equals(#R, r(superGenericDecl)); | 44 Expect.equals(#R, r(superGenericDecl)); |
| 45 Expect.equals(#S, s(superGenericDecl)); | 45 Expect.equals(#S, s(superGenericDecl)); |
| 46 | 46 |
| 47 Expect.equals(#T, r(superOfTAndInt)); | 47 Expect.equals(#T, r(superOfTAndInt)); |
| 48 Expect.equals(#int, s(superOfTAndInt)); | 48 Expect.equals(#int, s(superOfTAndInt)); |
| 49 | 49 |
| 50 Expect.equals(#String, r(superOfStringAndInt)); | 50 Expect.equals(#String, r(superOfStringAndInt)); |
| 51 Expect.equals(#int, t(superOfStringAndInt)); | 51 Expect.equals(#int, s(superOfStringAndInt)); |
| 52 } | 52 } |
| OLD | NEW |