Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(763)

Side by Side Diff: tests/lib/mirrors/generics_substitution_test.dart

Issue 26344006: Substitution for type variables in mirrors on instantiated generics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698