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

Unified Diff: tests/lib/mirrors/generic_bounded_by_type_parameter_test.dart

Issue 2774783002: Re-land "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/mirrors/constructor_kinds_test.dart ('k') | tests/lib/mirrors/generic_bounded_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/generic_bounded_by_type_parameter_test.dart
diff --git a/tests/lib/mirrors/generic_bounded_by_type_parameter_test.dart b/tests/lib/mirrors/generic_bounded_by_type_parameter_test.dart
index 388274a1de8fe5455dc1713cae5e27c9b398b127..f7aa69786d0507b2a4c73455688e5f9f4c0afabe 100644
--- a/tests/lib/mirrors/generic_bounded_by_type_parameter_test.dart
+++ b/tests/lib/mirrors/generic_bounded_by_type_parameter_test.dart
@@ -11,6 +11,7 @@ import 'package:expect/expect.dart';
import 'generics_helper.dart';
class Super<T, R extends T> {}
+
class Fixed extends Super<num, int> {}
class Generic<X, Y> extends Super<X, Y> {} //# 02: static type warning
class Malbounded extends Super<num, String> {} //# 01: static type warning
@@ -19,7 +20,7 @@ bool inCheckedMode() {
try {
var s = 'string';
int i = s;
- } catch(e) {
+ } catch (e) {
return true;
}
return false;
@@ -44,7 +45,7 @@ main() {
typeArguments(genericOfNumAndBool, [reflectClass(num), reflectClass(bool)]); // //# 02: continued
typeArguments(superOfNumAndBool, [reflectClass(num), reflectClass(bool)]); // //# 02: continued
Expect.isFalse(inCheckedMode()); //# 02: continued
- } on TypeError catch(e) {
+ } on TypeError catch (e) {
Expect.isTrue(inCheckedMode());
}
« no previous file with comments | « tests/lib/mirrors/constructor_kinds_test.dart ('k') | tests/lib/mirrors/generic_bounded_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698