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

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

Issue 49083004: Re-triage mirror test failures on the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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.generic_bounded; 5 library test.generic_bounded;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 8
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 10
11 import 'generics_test.dart'; 11 import 'generics_helper.dart';
12 12
13 class Super<T extends num> {} 13 class Super<T extends num> {}
14 14
15 class Fixed extends Super<int> {} 15 class Fixed extends Super<int> {}
16 class Generic<R> extends Super<R> {} 16 class Generic<R> extends Super<R> {}
17 class Malbounded extends Super<String> {} /// 01: static type warning 17 class Malbounded extends Super<String> {} /// 01: static type warning
18 18
19 main() { 19 main() {
20 ClassMirror superDecl = reflectClass(Super); 20 ClassMirror superDecl = reflectClass(Super);
21 ClassMirror superOfInt = reflectClass(Fixed).superclass; 21 ClassMirror superOfInt = reflectClass(Fixed).superclass;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 typeArguments(superDecl, []); 56 typeArguments(superDecl, []);
57 typeArguments(superOfInt, [reflectClass(int)]); 57 typeArguments(superOfInt, [reflectClass(int)]);
58 typeArguments(genericDecl, []); 58 typeArguments(genericDecl, []);
59 typeArguments(superOfR, [rFromGeneric]); 59 typeArguments(superOfR, [rFromGeneric]);
60 typeArguments(genericOfDouble, [reflectClass(double)]); 60 typeArguments(genericOfDouble, [reflectClass(double)]);
61 typeArguments(superOfDouble, [reflectClass(double)]); 61 typeArguments(superOfDouble, [reflectClass(double)]);
62 typeArguments(genericOfBool, [reflectClass(bool)]); /// 02: continued 62 typeArguments(genericOfBool, [reflectClass(bool)]); /// 02: continued
63 typeArguments(superOfBool, [reflectClass(bool)]); /// 02: continued 63 typeArguments(superOfBool, [reflectClass(bool)]); /// 02: continued
64 typeArguments(superOfString, [reflectClass(String)]); /// 01: continued 64 typeArguments(superOfString, [reflectClass(String)]); /// 01: continued
65 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698